Commit 2cd179f5 authored by mercury233's avatar mercury233 Committed by GitHub

add Card.GetPreviousOverlayCountOnField (#2500)

* add Card.GetPreviousOverlayCountOnField
parent a10b123c
...@@ -48,7 +48,7 @@ function c12744567.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c12744567.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c12744567.spcon(e,tp,eg,ep,ev,re,r,rp) function c12744567.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetOverlayCount()>0 return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousOverlayCountOnField()>0
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,48739166) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,48739166)
end end
function c12744567.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c12744567.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -55,7 +55,7 @@ function c20785975.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c20785975.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c20785975.spcon(e,tp,eg,ep,ev,re,r,rp) function c20785975.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetOverlayCount()>0 return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousOverlayCountOnField()>0
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,94380860) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,94380860)
end end
function c20785975.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c20785975.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -61,8 +61,8 @@ function c23998625.reptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -61,8 +61,8 @@ function c23998625.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c23998625.spcon(e,tp,eg,ep,ev,re,r,rp) function c23998625.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT) and c:GetOverlayCount()==0 return c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT)
and c:IsLocation(LOCATION_GRAVE) and c:GetPreviousOverlayCountOnField()==0 and c:IsLocation(LOCATION_GRAVE)
end end
function c23998625.spfilter(c,e,tp) function c23998625.spfilter(c,e,tp)
return c:IsCode(97403510) and e:GetHandler():IsCanBeXyzMaterial(c) return c:IsCode(97403510) and e:GetHandler():IsCanBeXyzMaterial(c)
......
...@@ -51,7 +51,7 @@ function c3828844.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c3828844.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function c3828844.spcon(e,tp,eg,ep,ev,re,r,rp) function c3828844.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetOverlayCount()>0 return c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousOverlayCountOnField()>0
end end
function c3828844.spfilter(c,e,tp) function c3828844.spfilter(c,e,tp)
if not (c:IsRankAbove(5) and c:IsRace(RACE_PLANT) and c:IsType(TYPE_XYZ) if not (c:IsRankAbove(5) and c:IsRace(RACE_PLANT) and c:IsType(TYPE_XYZ)
......
...@@ -121,7 +121,7 @@ function c42589641.hdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -121,7 +121,7 @@ function c42589641.hdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(sg,REASON_EFFECT) Duel.SendtoGrave(sg,REASON_EFFECT)
end end
function c42589641.spcon(e,tp,eg,ep,ev,re,r,rp) function c42589641.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetOverlayCount()>0 and e:GetHandler():IsPreviousLocation(LOCATION_MZONE) return e:GetHandler():GetPreviousOverlayCountOnField()>0 and e:GetHandler():IsPreviousLocation(LOCATION_MZONE)
end end
function c42589641.spfilter(c,e,tp) function c42589641.spfilter(c,e,tp)
return c:IsSetCard(0x9c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -39,13 +39,6 @@ function s.initial_effect(c) ...@@ -39,13 +39,6 @@ function s.initial_effect(c)
e3:SetTarget(s.sptg) e3:SetTarget(s.sptg)
e3:SetOperation(s.spop) e3:SetOperation(s.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e4:SetCode(EVENT_LEAVE_FIELD_P)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e4:SetLabelObject(e3)
e4:SetOperation(s.chk)
c:RegisterEffect(e4)
end end
function s.dmcon(e,tp,eg,ep,ev,re,r,rp) function s.dmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
...@@ -87,8 +80,10 @@ function s.filter(c,e,tp) ...@@ -87,8 +80,10 @@ function s.filter(c,e,tp)
return c:IsSetCard(0x81) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x81) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetLabel()>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 local ct=e:GetHandler():GetPreviousOverlayCountOnField()
if chk==0 then return ct>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
e:SetLabel(ct)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
...@@ -97,6 +92,3 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,6 +92,3 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE,0,1,e:GetLabel(),nil,e,tp) local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE,0,1,e:GetLabel(),nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
function s.chk(e,tp,eg,ep,ev,re,r,rp)
e:GetLabelObject():SetLabel(e:GetHandler():GetOverlayCount())
end
...@@ -36,13 +36,6 @@ function c67557908.initial_effect(c) ...@@ -36,13 +36,6 @@ function c67557908.initial_effect(c)
e3:SetTarget(c67557908.sptg) e3:SetTarget(c67557908.sptg)
e3:SetOperation(c67557908.spop) e3:SetOperation(c67557908.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e4:SetCode(EVENT_LEAVE_FIELD_P)
e4:SetOperation(c67557908.regop)
e4:SetLabelObject(e3)
c:RegisterEffect(e4)
end end
aux.xyz_number[67557908]=4 aux.xyz_number[67557908]=4
function c67557908.descon(e,tp,eg,ep,ev,re,r,rp) function c67557908.descon(e,tp,eg,ep,ev,re,r,rp)
...@@ -69,14 +62,11 @@ function c67557908.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,14 +62,11 @@ function c67557908.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(1-tp,dam,REASON_EFFECT) Duel.Damage(1-tp,dam,REASON_EFFECT)
end end
end end
function c67557908.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=c:GetOverlayCount()
e:GetLabelObject():SetLabel(ct)
end
function c67557908.spcon(e,tp,eg,ep,ev,re,r,rp) function c67557908.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_XYZ) and e:GetLabel()>0 local ct=c:GetPreviousOverlayCountOnField()
e:SetLabel(ct)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_XYZ) and ct>0
end end
function c67557908.spfilter(c,e,tp) function c67557908.spfilter(c,e,tp)
return c:IsCode(94942656) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(94942656) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -54,7 +54,7 @@ function c71921856.atkval(e,c) ...@@ -54,7 +54,7 @@ function c71921856.atkval(e,c)
end end
function c71921856.spcon(e,tp,eg,ep,ev,re,r,rp) function c71921856.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ct=c:GetOverlayCount() local ct=c:GetPreviousOverlayCountOnField()
e:SetLabel(ct) e:SetLabel(ct)
return c:IsReason(REASON_DESTROY) and c:GetReasonPlayer()==1-tp return c:IsReason(REASON_DESTROY) and c:GetReasonPlayer()==1-tp
and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(tp) and ct>0 and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(tp) and ct>0
......
...@@ -44,7 +44,7 @@ function c73289035.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c73289035.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c73289035.spcon(e,tp,eg,ep,ev,re,r,rp) function c73289035.spcon(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetHandler():GetOverlayCount() local ct=e:GetHandler():GetPreviousOverlayCountOnField()
e:SetLabel(ct) e:SetLabel(ct)
return rp==1-tp and bit.band(r,REASON_EFFECT)~=0 and ct>0 return rp==1-tp and bit.band(r,REASON_EFFECT)~=0 and ct>0
and e:GetHandler():IsPreviousPosition(POS_FACEUP) and e:GetHandler():IsPreviousPosition(POS_FACEUP)
......
...@@ -43,7 +43,7 @@ function c77799846.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function c77799846.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c77799846.spcon(e,tp,eg,ep,ev,re,r,rp) function c77799846.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) and e:GetHandler():GetOverlayCount()>0 return e:GetHandler():IsReason(REASON_DESTROY) and e:GetHandler():GetPreviousOverlayCountOnField()>0
end end
function c77799846.rfilter(c) function c77799846.rfilter(c)
return c:IsSetCard(0x85) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x85) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
......
...@@ -79,7 +79,7 @@ function c89477759.desop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +79,7 @@ function c89477759.desop2(e,tp,eg,ep,ev,re,r,rp)
end end
function c89477759.spcon(e,tp,eg,ep,ev,re,r,rp) function c89477759.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:GetOverlayCount()>0 and c:IsPreviousLocation(LOCATION_MZONE) return c:GetPreviousOverlayCountOnField()>0 and c:IsPreviousLocation(LOCATION_MZONE)
and rp==1-tp and c:IsReason(REASON_EFFECT) and c:IsReason(REASON_DESTROY) and c:IsPreviousControler(tp) and rp==1-tp and c:IsReason(REASON_EFFECT) and c:IsReason(REASON_DESTROY) and c:IsPreviousControler(tp)
end end
function c89477759.spfilter(c,e,tp) function c89477759.spfilter(c,e,tp)
......
...@@ -25,13 +25,6 @@ function c9486959.initial_effect(c) ...@@ -25,13 +25,6 @@ function c9486959.initial_effect(c)
e2:SetTarget(c9486959.tdtg) e2:SetTarget(c9486959.tdtg)
e2:SetOperation(c9486959.tdop) e2:SetOperation(c9486959.tdop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_LEAVE_FIELD_P)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetOperation(c9486959.regop)
e3:SetLabelObject(e2)
c:RegisterEffect(e3)
end end
function c9486959.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c9486959.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
...@@ -65,11 +58,6 @@ end ...@@ -65,11 +58,6 @@ end
function c9486959.retop(e,tp,eg,ep,ev,re,r,rp) function c9486959.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.ReturnToField(e:GetLabelObject()) Duel.ReturnToField(e:GetLabelObject())
end end
function c9486959.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=c:GetOverlayCount()
e:GetLabelObject():SetLabel(ct)
end
function c9486959.tdcon(e,tp,eg,ep,ev,re,r,rp) function c9486959.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return rp==1-tp and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD) return rp==1-tp and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD)
...@@ -79,7 +67,7 @@ function c9486959.tdfilter(c) ...@@ -79,7 +67,7 @@ function c9486959.tdfilter(c)
end end
function c9486959.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c9486959.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and c9486959.tdfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and c9486959.tdfilter(chkc) end
local ct=e:GetLabel() local ct=e:GetHandler():GetPreviousOverlayCountOnField()
if chk==0 then return ct>0 and Duel.IsExistingTarget(c9486959.tdfilter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,nil) end if chk==0 then return ct>0 and Duel.IsExistingTarget(c9486959.tdfilter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=Duel.SelectTarget(tp,c9486959.tdfilter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,ct,nil) local sg=Duel.SelectTarget(tp,c9486959.tdfilter,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,ct,nil)
......
...@@ -34,13 +34,6 @@ function c94942656.initial_effect(c) ...@@ -34,13 +34,6 @@ function c94942656.initial_effect(c)
e3:SetTarget(c94942656.sptg) e3:SetTarget(c94942656.sptg)
e3:SetOperation(c94942656.spop) e3:SetOperation(c94942656.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e4:SetCode(EVENT_LEAVE_FIELD_P)
e4:SetOperation(c94942656.regop2)
e4:SetLabelObject(e3)
c:RegisterEffect(e4)
end end
function c94942656.descon(e,tp,eg,ep,ev,re,r,rp) function c94942656.descon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
...@@ -69,14 +62,11 @@ end ...@@ -69,14 +62,11 @@ end
function c94942656.regop(e,tp,eg,ep,ev,re,r,rp) function c94942656.regop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(94942656,RESET_EVENT+RESET_TURN_SET+RESET_TOHAND+RESET_TODECK+RESET_TOFIELD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(94942656,3)) e:GetHandler():RegisterFlagEffect(94942656,RESET_EVENT+RESET_TURN_SET+RESET_TOHAND+RESET_TODECK+RESET_TOFIELD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(94942656,3))
end end
function c94942656.regop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=c:GetOverlayCount()
e:GetLabelObject():SetLabel(ct)
end
function c94942656.spcon(e,tp,eg,ep,ev,re,r,rp) function c94942656.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetFlagEffect(94942656)>0 and e:GetLabel()>0 local ct=c:GetPreviousOverlayCountOnField()
e:SetLabel(ct)
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetFlagEffect(94942656)>0 and ct>0
end end
function c94942656.spfilter(c,e,tp) function c94942656.spfilter(c,e,tp)
return c:IsSetCard(0x168) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x168) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -86,7 +86,7 @@ function c97403510.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -86,7 +86,7 @@ function c97403510.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c97403510.spcon(e,tp,eg,ep,ev,re,r,rp) function c97403510.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) and e:GetHandler():GetOverlayCount()>0 return e:GetHandler():IsReason(REASON_DESTROY) and e:GetHandler():GetPreviousOverlayCountOnField()>0
end end
function c97403510.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c97403510.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -9,26 +9,9 @@ function c98905.initial_effect(c) ...@@ -9,26 +9,9 @@ function c98905.initial_effect(c)
e1:SetTarget(c98905.target) e1:SetTarget(c98905.target)
e1:SetOperation(c98905.activate) e1:SetOperation(c98905.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not c98905.global_check then
c98905.global_check=true
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_TO_GRAVE)
ge1:SetOperation(c98905.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function c98905.callback(c)
local tp=c:GetPreviousControler()
if c:IsSetCard(0xe5) and c:IsType(TYPE_XYZ) and c:IsControler(tp) and c:GetOverlayCount()>0 then
c:RegisterFlagEffect(98905,RESET_EVENT+RESETS_STANDARD,0,1)
end
end
function c98905.checkop(e,tp,eg,ep,ev,re,r,rp)
eg:ForEach(c98905.callback)
end end
function c98905.filter(c,e,tp) function c98905.filter(c,e,tp)
return c:GetFlagEffect(98905)~=0 and c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) return c:GetPreviousOverlayCountOnField()~=0 and c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp)
and (c:IsReason(REASON_BATTLE) or c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp) and (c:IsReason(REASON_BATTLE) or c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp)
and c:IsReason(REASON_DESTROY) and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsReason(REASON_DESTROY) and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingMatchingCard(c98905.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c:GetCode()) and Duel.IsExistingMatchingCard(c98905.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c:GetCode())
......
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