Commit bf07ae75 authored by DailyShana's avatar DailyShana Committed by GitHub

update scripts that using Duel.SpecialSummonComplete (#1302)

close Fluorohydride/ygopro#2260
parent 9510077f
......@@ -161,6 +161,6 @@ function c10000080.spop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -41,6 +41,6 @@ function c10802915.spop(e,tp,eg,ep,ev,re,r,rp)
e3:SetValue(1)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e3,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -88,6 +88,6 @@ function c11969228.spop(e,tp,eg,ep,ev,re,r,rp)
e3:SetValue(1)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e3)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -74,8 +74,8 @@ function c12766474.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(ct*500)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c12766474.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(12766474,tp,ACTIVITY_SPSUMMON)==0 end
......
......@@ -55,8 +55,8 @@ function c13647631.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_SET_BASE_DEFENSE)
e2:SetValue(math.ceil(def/2))
c:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c13647631.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -31,6 +31,6 @@ function c14025912.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -49,8 +49,8 @@ function c14463695.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(c14463695.eqlimit)
c:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c14463695.eqlimit(e,c)
return e:GetOwner()==c
......
......@@ -75,7 +75,7 @@ function c14577226.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
sg:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
end
......@@ -65,8 +65,8 @@ function c14816688.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetCondition(c14816688.rmcon1)
e3:SetOperation(c14816688.rmop1)
Duel.RegisterEffect(e3,tp)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c14816688.rmcon1(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
......
......@@ -56,6 +56,6 @@ function c14943837.sumop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -73,6 +73,6 @@ function c15092394.spop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
Duel.Overlay(tc,Group.FromCards(c))
end
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -33,6 +33,6 @@ function c16984449.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
tc:EnableDualState()
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -49,6 +49,6 @@ function c17377751.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -50,7 +50,6 @@ function c17412721.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
if c:IsRelateToEffect(e) then
c:SetCardTarget(tc)
e:GetLabelObject():SetLabelObject(tc)
......@@ -58,6 +57,7 @@ function c17412721.spop(e,tp,eg,ep,ev,re,r,rp)
tc:CreateRelation(c,RESET_EVENT+0x5fe0000)
end
end
Duel.SpecialSummonComplete()
end
function c17412721.leave(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -46,8 +46,8 @@ function c1759808.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(c1759808.tdop)
e1:SetReset(RESET_PHASE+PHASE_END,2)
Duel.RegisterEffect(e1,tp)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then
local e2=Effect.CreateEffect(e:GetHandler())
......
......@@ -47,8 +47,8 @@ function c18302224.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e2:SetCountLimit(1)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c18302224.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT)
......
......@@ -62,6 +62,6 @@ function c18491580.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
end
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -56,8 +56,8 @@ function c18597560.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetLabel(Duel.GetTurnCount())
e2:SetLabelObject(tc)
Duel.RegisterEffect(e2,tp)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c18597560.descon(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
......
......@@ -54,8 +54,8 @@ function c22082163.operation(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e)
and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_ATTACK) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c22082163.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetFirstCardTarget()
......
......@@ -63,8 +63,8 @@ function c22159429.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(c22159429.eqlimit)
c:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c22159429.eqlimit(e,c)
return e:GetOwner()==c
......
......@@ -47,6 +47,6 @@ function c22754505.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -42,8 +42,8 @@ function c23269426.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
sg:GetFirst():RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetRange(LOCATION_MZONE)
......
......@@ -58,8 +58,8 @@ function c23440062.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_ATTACK) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c23440062.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetFirstCardTarget()
......
......@@ -25,7 +25,6 @@ function c23557835.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,2,LOCATION_REMOVED)
end
function c23557835.op(e,tp,eg,ep,ev,re,r,rp)
local count=0
local ft1=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft1>0 then
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft1=1 end
......@@ -36,7 +35,6 @@ function c23557835.op(e,tp,eg,ep,ev,re,r,rp)
while tc do
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
tc=g:GetNext()
count=count+1
end
end
end
......@@ -50,9 +48,8 @@ function c23557835.op(e,tp,eg,ep,ev,re,r,rp)
while tc do
Duel.SpecialSummonStep(tc,0,1-tp,1-tp,false,false,POS_FACEUP)
tc=g:GetNext()
count=count+1
end
end
end
if count>0 then Duel.SpecialSummonComplete() end
Duel.SpecialSummonComplete()
end
......@@ -53,8 +53,8 @@ function c23869735.operation(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e)
and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c23869735.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetFirstCardTarget()
......
......@@ -40,8 +40,8 @@ function c2414168.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(ev)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c2414168.defcon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
......
......@@ -77,6 +77,6 @@ function c24361622.spop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -76,6 +76,6 @@ function c25669282.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
tc:EnableDualState()
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -56,7 +56,6 @@ function c25924653.spgop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
if c:IsRelateToEffect(e) then
c:SetCardTarget(tc)
e:GetLabelObject():SetLabelObject(tc)
......@@ -64,6 +63,7 @@ function c25924653.spgop(e,tp,eg,ep,ev,re,r,rp)
tc:CreateRelation(c,RESET_EVENT+0x5fe0000)
end
end
Duel.SpecialSummonComplete()
end
function c25924653.leave(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -42,8 +42,8 @@ function c26956670.operation(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e)
and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c26956670.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetFirstCardTarget()
......
......@@ -49,6 +49,6 @@ function c27337596.spop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -46,8 +46,8 @@ function c27352108.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(aux.ChangeBattleDamage(0,HALF_DAMAGE))
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c27352108.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -41,6 +41,6 @@ function c27415516.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -50,8 +50,8 @@ function c27551.operation(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e)
and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_ATTACK) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c27551.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetFirstCardTarget()
......
......@@ -37,6 +37,6 @@ function c28637168.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -41,8 +41,8 @@ function c28890974.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetCountLimit(1)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
end
function c28890974.desop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -40,6 +40,6 @@ function c2903036.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
g:GetFirst():RegisterEffect(e1,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -39,8 +39,8 @@ function c31443476.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e2:SetCountLimit(1)
Duel.RegisterEffect(e2,tp)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c31443476.descon(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
......
......@@ -88,6 +88,6 @@ function c31516413.spop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -45,8 +45,8 @@ function c31550470.operation(e,tp,eg,ep,ev,re,r,rp)
e:SetLabelObject(tc)
c:CreateRelation(tc,RESET_EVENT+RESETS_STANDARD)
tc:CreateRelation(c,RESET_EVENT+RESETS_STANDARD)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c31550470.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetFirstCardTarget()
......
......@@ -36,7 +36,6 @@ function c31643613.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g2)
end
end
Duel.SpecialSummonComplete()
if not e:IsHasType(EFFECT_TYPE_ACTIVATE) then return end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -91,6 +91,6 @@ function c3300267.spop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -62,8 +62,8 @@ function c33280639.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetLabel(Duel.GetTurnCount())
e1:SetLabelObject(tc)
Duel.RegisterEffect(e1,tp)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c33280639.descon(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
......
......@@ -62,8 +62,8 @@ function c33541430.drop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
Duel.ShuffleHand(tp)
end
......
......@@ -67,8 +67,8 @@ function c34959756.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_REDIRECT)
e2:SetValue(LOCATION_REMOVED)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c34959756.rmop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -58,6 +58,6 @@ function c35073065.spop(e,tp,eg,ep,ev,re,r,rp)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e3)
end
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -48,6 +48,6 @@ function c35307484.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -42,8 +42,8 @@ function c35539880.operation(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e)
and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_ATTACK) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c35539880.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetFirstCardTarget()
......
......@@ -42,6 +42,6 @@ function c36318200.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -56,8 +56,8 @@ function c36415522.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c36415522.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -68,6 +68,6 @@ function c36614113.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -42,8 +42,8 @@ function c36730805.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetLabelObject(e1)
e2:SetOperation(c36730805.cedop)
Duel.RegisterEffect(e2,tp)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c36730805.sumop(e,tp,eg,ep,ev,re,r,rp)
if eg:IsContains(e:GetLabelObject()) then
......
......@@ -50,6 +50,6 @@ function c36737092.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -63,7 +63,7 @@ function c36768783.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
sc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
end
......@@ -96,8 +96,8 @@ function c36841733.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c36841733.bttg)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c36841733.bttg(e,c)
return c:IsFaceup() and c:IsLevelBelow(e:GetHandler():GetLevel())
......
......@@ -58,9 +58,9 @@ function c3891471.operation(e,tp,eg,ep,ev,re,r,rp)
local lv=tc:GetLevel()
if Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_ATTACK) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
c:RegisterFlagEffect(3891471,RESET_EVENT+0x17a0000,0,1,lv)
end
Duel.SpecialSummonComplete()
end
end
function c3891471.desop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -57,6 +57,6 @@ function c39033131.spop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone()
e2:SetCode(EFFECT_DISABLE_EFFECT)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -56,8 +56,8 @@ function c39122311.operation(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e)
and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c39122311.checkop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsDisabled() then
......
......@@ -59,8 +59,8 @@ function c39271553.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e2)
end
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c39271553.thfilter(c)
return c:IsSetCard(0x107) and c:IsType(TYPE_FIELD) and c:IsAbleToHand()
......
......@@ -95,6 +95,6 @@ function c4022819.spop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -80,6 +80,6 @@ function c41375811.spop(e,tp,eg,ep,ev,re,r,rp)
e3:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL)
e3:SetValue(1)
tc:RegisterEffect(e3)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -75,8 +75,8 @@ function c41546.desop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
......
......@@ -43,6 +43,6 @@ function c41639001.spop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -52,6 +52,6 @@ function c42079445.spop(e,tp,eg,ep,ev,re,r,rp)
e5:SetCode(EFFECT_CANNOT_CHANGE_POSITION)
e5:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e5,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -49,6 +49,6 @@ function c4215636.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -36,8 +36,8 @@ function c42172465.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetLabel(Duel.GetTurnCount())
e1:SetLabelObject(tc)
Duel.RegisterEffect(e1,tp)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c42172465.descon(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
......
......@@ -36,6 +36,6 @@ function c44341034.sumop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -32,6 +32,6 @@ function c45313993.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(math.ceil(atk/2))
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -38,6 +38,6 @@ function c45705025.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -49,8 +49,8 @@ function c46502744.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummonStep(c,0,tp,tp,false,false,POS_FACEUP) then
c:RegisterFlagEffect(46502745,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD,0,1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c46502744.remcon(e)
return e:GetHandler():GetFlagEffect(46502745)~=0
......
......@@ -51,8 +51,8 @@ function c46589034.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(tc:GetLevel())
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
end
function c46589034.xyzlimit(e,c)
......
......@@ -44,6 +44,6 @@ function c47482043.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(200)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -49,6 +49,7 @@ function c48210156.spop(e,tp,eg,ep,ev,re,r,rp)
e4:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e4)
end
Duel.SpecialSummonComplete()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
......@@ -57,7 +58,6 @@ function c48210156.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(c48210156.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
Duel.SpecialSummonComplete()
end
function c48210156.splimit(e,c)
return c:GetRace()~=RACE_FIEND
......
......@@ -68,6 +68,6 @@ function c4914353.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(LOCATION_REMOVED)
e2:SetReset(RESET_EVENT+RESETS_REDIRECT)
c:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -70,8 +70,8 @@ function c50619462.spop(e,tp,eg,ep,ev,re,r,rp)
e4:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e4:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e4,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c50619462.descon(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
......
......@@ -86,7 +86,7 @@ function c50669347.desop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
end
......@@ -64,8 +64,8 @@ function c51543904.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c51543904.discon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -81,6 +81,6 @@ function c52145422.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -53,6 +53,6 @@ function c52615248.spop(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetValue(LOCATION_REMOVED)
e1:SetReset(RESET_EVENT+RESETS_REDIRECT)
tc:RegisterEffect(e1,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -64,7 +64,6 @@ function c52628687.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
Duel.Equip(tp,c,tc)
Duel.SpecialSummonComplete()
--Add Equip limit
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
......@@ -75,4 +74,5 @@ function c52628687.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(c52628687.eqlimit)
c:RegisterEffect(e2)
end
Duel.SpecialSummonComplete()
end
......@@ -60,8 +60,8 @@ function c52904476.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c52904476.spr(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -41,6 +41,6 @@ function c53797637.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -37,6 +37,6 @@ function c54507222.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -81,6 +81,6 @@ function c5614808.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(TYPE_TUNER)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -85,8 +85,8 @@ function c56907986.spop2(e,tp,eg,ep,ev,re,r,rp)
e3:SetLabelObject(tc)
Duel.RegisterEffect(e3,tp)
tc:RegisterFlagEffect(56907986,RESET_EVENT+RESETS_STANDARD,0,1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c56907986.descon(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
......
......@@ -33,6 +33,6 @@ function c57047293.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -37,6 +37,6 @@ function c57246528.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
sg:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -47,6 +47,6 @@ function c57477163.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(800)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -29,6 +29,6 @@ function c57782164.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(4)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -47,6 +47,6 @@ function c58843503.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -60,6 +60,6 @@ function c59724555.spop2(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_REDIRECT)
e1:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e1,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -77,6 +77,6 @@ function c59975920.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CLIENT_HINT)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -63,8 +63,8 @@ function c60202749.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c60202749.sdescon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and Duel.GetTurnCount()~=e:GetLabel()
......
......@@ -61,6 +61,6 @@ function c60292055.spop(e,tp,eg,ep,ev,re,r,rp)
e3:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL)
e3:SetValue(1)
tc:RegisterEffect(e3)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -72,8 +72,8 @@ function c60621361.activate(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e)
and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c60621361.checkop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsDisabled() then
......
......@@ -55,6 +55,6 @@ function c61011311.activate(e,tp,eg,ep,ev,re,r,rp)
e5:SetValue(1)
e5:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e5,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
......@@ -119,7 +119,7 @@ function c61665245.spop2(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
sc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
end
......@@ -54,8 +54,8 @@ function c61962135.operation(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e)
and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP_ATTACK) then
c:SetCardTarget(tc)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c61962135.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetFirstCardTarget()
......
......@@ -72,8 +72,8 @@ function c6203182.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
function c6203182.eqlimit(e,c)
return e:GetOwner()==c
......
......@@ -77,6 +77,6 @@ function c62957424.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
Duel.SpecialSummonComplete()
end
Duel.SpecialSummonComplete()
end
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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