Commit 9114d540 authored by TanakaKotoha's avatar TanakaKotoha

foo foo

parent b796885f
Pipeline #854 passed with stages
in 45 minutes and 47 seconds
......@@ -22,7 +22,7 @@ function cm.tkcon(e,tp,eg,ep,ev,re,r,rp)
end
function cm.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,17050899,0,0x4011,1000,1000,3,RACE_BEAST,ATTRIBUTE_LIGHT,POS_FACEUP) end
and Duel.IsPlayerCanSpecialSummonMonster(tp,17029902,0,0x4011,1000,1000,3,RACE_BEAST,ATTRIBUTE_LIGHT,POS_FACEUP) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
if Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1 then
......@@ -31,14 +31,14 @@ function cm.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.tkop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
or not Duel.IsPlayerCanSpecialSummonMonster(tp,17050899,0,0x4011,1000,1000,3,RACE_BEAST,ATTRIBUTE_LIGHT,POS_FACEUP) then return end
or not Duel.IsPlayerCanSpecialSummonMonster(tp,17029902,0,0x4011,1000,1000,3,RACE_BEAST,ATTRIBUTE_LIGHT,POS_FACEUP) then return end
local cou=1
if e:GetHandler():GetFlagEffect(17031130)>0 and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.SelectYesNo(tp,aux.Stringid(17031130,1)) then
cou=2
end
for i=1,cou do
local token=Duel.CreateToken(tp,17050899)
local token=Duel.CreateToken(tp,17029902)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -60,7 +60,7 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(p,d,REASON_EFFECT)
end
function cm.rccon(e,tp,eg,ep,ev,re,r,rp)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035000)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035300)
end
function cm.rctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -50,7 +50,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(g,REASON_COST)
end
function cm.ctcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035000)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035300)
end
function cm.filter(c)
return c:IsFaceup()
......
......@@ -46,7 +46,7 @@ function cm.hspcon(e,c)
and Duel.IsExistingMatchingCard(cm.hspfilter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035000)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035300)
end
function cm.spfilter(c,e,tp)
return c:IsSetCard(0x7f5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -2,7 +2,7 @@
local m=17035210
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddCodeList(c,17035200)
aux.AddCodeList(c,17035310)
--pendulum summon
aux.EnablePendulumAttribute(c)
--Cannot special summon
......@@ -60,7 +60,7 @@ function cm.initial_effect(c)
e5:SetTarget(cm.splimit)
c:RegisterEffect(e5)
end
cm.princess_name=17035010
cm.princess_name=17035320
function cm.actcon(e)
return Duel.GetAttacker()==e:GetHandler() or Duel.GetAttackTarget()==e:GetHandler()
end
......@@ -82,7 +82,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
if chk==0 then return true end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
......@@ -90,7 +90,7 @@ end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if c:IsRelateToEffect(e) and #g>0 and Duel.SendtoHand(c,nil,REASON_EFFECT)~=0 then
if c:IsRelateToEffect(e) and Duel.SendtoHand(c,nil,REASON_EFFECT)~=0 and #g>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=g:Select(tp,1,2,nil)
Duel.Destroy(g,REASON_EFFECT)
......
......@@ -2,7 +2,7 @@
local m=17035220
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddCodeList(c,17035200)
aux.AddCodeList(c,17035310)
--pendulum summon
aux.EnablePendulumAttribute(c)
--Cannot special summon
......@@ -18,7 +18,7 @@ function cm.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(cm.atktg)
e1:SetValue(1000)
e1:SetValue(300)
c:RegisterEffect(e1)
--indes
local e2=e1:Clone()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment