Commit 3091cdbf authored by DailyShana's avatar DailyShana

fix

parent 7c5668a9
...@@ -20,11 +20,11 @@ function c12632096.ctcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,11 +20,11 @@ function c12632096.ctcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0xe5) return e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0xe5)
end end
function c12632096.ctfilter(c) function c12632096.ctfilter(c)
return c:IsFaceup() and c:IsControlerCanBeChanged() return c:IsFaceup() and c:IsAbleToChangeControler()
end end
function c12632096.ctcost(e,tp,eg,ep,ev,re,r,rp,chk) function c12632096.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local rt=math.min(Duel.GetMatchingGroupCount(c12632096.ctfilter,tp,0,LOCATION_MZONE,nil),Duel.GetLocationCount(tp,LOCATION_MZONE),c:GetOverlayCount(),3) local rt=math.min(Duel.GetMatchingGroupCount(c12632096.ctfilter,tp,0,LOCATION_MZONE,nil),Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_CONTROL),c:GetOverlayCount(),3)
if chk==0 then return rt>0 and c:CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return rt>0 and c:CheckRemoveOverlayCard(tp,1,REASON_COST) end
c:RemoveOverlayCard(tp,1,rt,REASON_COST) c:RemoveOverlayCard(tp,1,rt,REASON_COST)
local ct=Duel.GetOperatedGroup():GetCount() local ct=Duel.GetOperatedGroup():GetCount()
...@@ -44,7 +44,7 @@ function c12632096.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c12632096.ctop(e,tp,eg,ep,ev,re,r,rp)
e1:SetLabel(c:GetFieldID()) e1:SetLabel(c:GetFieldID())
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local ct=math.min(e:GetLabel(),Duel.GetLocationCount(tp,LOCATION_MZONE)) local ct=math.min(e:GetLabel(),Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_CONTROL))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectMatchingCard(tp,c12632096.ctfilter,tp,0,LOCATION_MZONE,ct,ct,nil) local g=Duel.SelectMatchingCard(tp,c12632096.ctfilter,tp,0,LOCATION_MZONE,ct,ct,nil)
Duel.GetControl(g,tp,PHASE_END,1) Duel.GetControl(g,tp,PHASE_END,1)
...@@ -60,6 +60,7 @@ function c12632096.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,6 +60,7 @@ function c12632096.ctop(e,tp,eg,ep,ev,re,r,rp)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_DISABLE_EFFECT) e3:SetCode(EFFECT_DISABLE_EFFECT)
e3:SetValue(RESET_TURN_SET)
e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
......
...@@ -29,7 +29,7 @@ function c14577226.initial_effect(c) ...@@ -29,7 +29,7 @@ function c14577226.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c14577226.damfilter(c) function c14577226.damfilter(c)
return c:IsSetCard(0xf0) and c:GetAttack()>0 return c:IsSetCard(0xf0) and c:GetLevel()>0
end end
function c14577226.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c14577226.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c14577226.damfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c14577226.damfilter(chkc) end
......
...@@ -13,6 +13,7 @@ function c17540705.initial_effect(c) ...@@ -13,6 +13,7 @@ function c17540705.initial_effect(c)
--to hand --to hand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(17540705,0)) e2:SetDescription(aux.Stringid(17540705,0))
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_PZONE) e2:SetRange(LOCATION_PZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
...@@ -44,7 +45,7 @@ function c17540705.initial_effect(c) ...@@ -44,7 +45,7 @@ function c17540705.initial_effect(c)
end end
function c17540705.threg(e,tp,eg,ep,ev,re,r,rp,chk) function c17540705.threg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
e:GetHandler():RegisterFlagEffect(17540705,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1) e:GetHandler():RegisterFlagEffect(17540705,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end end
function c17540705.thcon(e,tp,eg,ep,ev,re,r,rp) function c17540705.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(17540705)~=0 return e:GetHandler():GetFlagEffect(17540705)~=0
...@@ -60,6 +61,7 @@ function c17540705.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -60,6 +61,7 @@ function c17540705.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end end
function c17540705.thop(e,tp,eg,ep,ev,re,r,rp) function c17540705.thop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
......
...@@ -66,7 +66,7 @@ function c25415052.retreg(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function c25415052.retreg(e,tp,eg,ep,ev,re,r,rp)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetReset(RESET_EVENT+0x1ee0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1ee0000+RESET_PHASE+PHASE_END)
e1:SetCondition(Auxiliary.SpiritReturnCondition) e1:SetCondition(aux.SpiritReturnCondition)
e1:SetTarget(c25415052.rettg) e1:SetTarget(c25415052.rettg)
e1:SetOperation(c25415052.retop) e1:SetOperation(c25415052.retop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -73,7 +73,7 @@ function c25793414.rstop(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,7 +73,7 @@ function c25793414.rstop(e,tp,eg,ep,ev,re,r,rp)
end end
function c25793414.spcon(e,tp,eg,ep,ev,re,r,rp) function c25793414.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and rp~=tp return c:IsReason(REASON_DESTROY) and rp==1-tp
end end
function c25793414.spfilter1(c,e,tp) function c25793414.spfilter1(c,e,tp)
return c:IsCode(14577226) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(14577226) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -31,26 +31,24 @@ function c276357.initial_effect(c) ...@@ -31,26 +31,24 @@ function c276357.initial_effect(c)
e3:SetOperation(c276357.desop) e3:SetOperation(c276357.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c276357.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer()
end
function c276357.cfilter(c)
return c:IsType(TYPE_SPIRIT) and c:IsAbleToRemoveAsCost()
end
function c276357.target(e,tp,eg,ep,ev,re,r,rp,chk) function c276357.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local g=Duel.GetMatchingGroup(c276357.cfilter,tp,LOCATION_GRAVE,0,nil) local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(EVENT_ATTACK_ANNOUNCE,true)
if Duel.CheckEvent(EVENT_ATTACK_ANNOUNCE) and tp~=Duel.GetTurnPlayer() and Duel.GetFlagEffect(tp,276357)==0 if res and c276357.condition(e,tp,teg,tep,tev,tre,tr,trp)
and g:GetCount()>0 and Duel.SelectYesNo(tp,94) then and c276357.cost(e,tp,teg,tep,tev,tre,tr,trp,0)
Duel.RegisterFlagEffect(tp,276357,RESET_PHASE+PHASE_END,0,1) and Duel.SelectYesNo(tp,94) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) c276357.cost(e,tp,teg,tep,tev,tre,tr,trp,1)
local tg=g:Select(tp,1,1,nil)
Duel.Remove(tg,POS_FACEUP,REASON_COST)
e:SetOperation(c276357.activate) e:SetOperation(c276357.activate)
else else
e:SetOperation(nil) e:SetOperation(nil)
end end
end end
function c276357.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer()
end
function c276357.cfilter(c)
return c:IsType(TYPE_SPIRIT) and c:IsAbleToRemoveAsCost()
end
function c276357.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c276357.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c276357.cfilter,tp,LOCATION_GRAVE,0,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(c276357.cfilter,tp,LOCATION_GRAVE,0,1,nil)
and Duel.GetFlagEffect(tp,276357)==0 end and Duel.GetFlagEffect(tp,276357)==0 end
...@@ -73,9 +71,9 @@ function c276357.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,9 +71,9 @@ function c276357.descon(e,tp,eg,ep,ev,re,r,rp)
end end
function c276357.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c276357.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(nil,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,nil,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function c276357.desop(e,tp,eg,ep,ev,re,r,rp) function c276357.desop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -10,30 +10,17 @@ function c30426226.initial_effect(c) ...@@ -10,30 +10,17 @@ function c30426226.initial_effect(c)
e1:SetOperation(c30426226.activate) e1:SetOperation(c30426226.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c30426226.filter(c)
return not c:IsAbleToChangeControler()
end
function c30426226.target(e,tp,eg,ep,ev,re,r,rp,chk) function c30426226.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsAbleToChangeControler,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local g1=g:Filter(Card.IsControler,nil,tp) local g1=g:Filter(Card.IsControler,nil,tp)
local g2=g:Filter(Card.IsControler,nil,1-tp) local g2=g:Filter(Card.IsControler,nil,1-tp)
if chk==0 then return g1:GetCount()==g2:GetCount() if chk==0 then return g1:GetCount()==g2:GetCount() end
and g:FilterCount(c30426226.filter,nil)==0 end
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,g:GetCount(),0,0)
end end
function c30426226.filter2(c,e)
return not c:IsAbleToChangeControler() or c:IsImmuneToEffect(e)
end
function c30426226.activate(e,tp,eg,ep,ev,re,r,rp) function c30426226.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsAbleToChangeControler,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local g1=g:Filter(Card.IsControler,nil,tp) local g1=g:Filter(Card.IsControler,nil,tp)
local g2=g:Filter(Card.IsControler,nil,1-tp) local g2=g:Filter(Card.IsControler,nil,1-tp)
if g1:GetCount()~=g2:GetCount() or g:FilterCount(c30426226.filter2,nil,e)>0 then return end if g1:GetCount()~=g2:GetCount() then return end
local a=g1:GetFirst() Duel.SwapControl(g1,g2)
local b=g2:GetFirst()
while a and b do
Duel.SwapControl(a,b)
a=g1:GetNext()
b=g2:GetNext()
end
end end
...@@ -71,17 +71,15 @@ function c30539496.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,17 +71,15 @@ function c30539496.spop(e,tp,eg,ep,ev,re,r,rp)
local rg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,nil) local rg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_EXTRA,nil)
if rm and rg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(30539496,2)) then if rm and rg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(30539496,2)) then
Duel.ConfirmCards(tp,rg) Duel.ConfirmCards(tp,rg)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local tg=Group.CreateGroup()
local sg=rg:Select(tp,1,1,nil) local i=3
local tg=sg:Clone() repeat
rg:Sub(rg:Filter(Card.IsCode,nil,sg:GetFirst():GetCode())) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local i=2 local tc=rg:Select(tp,1,1,nil):GetFirst()
while i>0 and rg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(30539496,3)) do rg:Remove(Card.IsCode,nil,tc:GetCode())
sg=rg:Select(tp,1,1,nil) tg:AddCard(tc)
tg:Merge(sg)
rg:Sub(rg:Filter(Card.IsCode,nil,sg:GetFirst():GetCode()))
i=i-1 i=i-1
end until i<1 or rg:GetCount()==0 or not Duel.SelectYesNo(tp,aux.Stringid(30539496,3))
Duel.Remove(tg,POS_FACEUP,REASON_EFFECT) Duel.Remove(tg,POS_FACEUP,REASON_EFFECT)
end end
end end
......
...@@ -14,7 +14,6 @@ function c31548814.costfilter(c) ...@@ -14,7 +14,6 @@ function c31548814.costfilter(c)
return c:IsSetCard(0xc5) and c:IsType(TYPE_SPELL+TYPE_TRAP) and (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and c:IsAbleToGraveAsCost() return c:IsSetCard(0xc5) and c:IsType(TYPE_SPELL+TYPE_TRAP) and (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and c:IsAbleToGraveAsCost()
end end
function c31548814.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c31548814.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c31548814.costfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,e:GetHandler())
if chk==0 then return Duel.IsExistingMatchingCard(c31548814.costfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c31548814.costfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c31548814.costfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,e:GetHandler()) local g=Duel.SelectMatchingCard(tp,c31548814.costfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,e:GetHandler())
......
...@@ -62,7 +62,7 @@ function c31755044.rmcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +62,7 @@ function c31755044.rmcon(e,tp,eg,ep,ev,re,r,rp)
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
e:SetLabelObject(bc) e:SetLabelObject(bc)
return c:GetOverlayGroup():IsExists(Card.IsCode,1,nil,31755044) return c:GetOverlayGroup():IsExists(Card.IsCode,1,nil,31755044)
and bc and bc:IsRelateToBattle() and bc and bc:IsStatus(STATUS_OPPO_BATTLE) and bc:IsRelateToBattle()
end end
function c31755044.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c31755044.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetLabelObject():IsAbleToRemove() end if chk==0 then return e:GetLabelObject():IsAbleToRemove() end
...@@ -71,7 +71,7 @@ function c31755044.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -71,7 +71,7 @@ function c31755044.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c31755044.rmop(e,tp,eg,ep,ev,re,r,rp) function c31755044.rmop(e,tp,eg,ep,ev,re,r,rp)
local bc=e:GetLabelObject() local bc=e:GetLabelObject()
if bc:IsRelateToBattle() then if bc:IsRelateToBattle() and bc:IsControler(1-tp) then
Duel.Remove(bc,POS_FACEUP,REASON_EFFECT) Duel.Remove(bc,POS_FACEUP,REASON_EFFECT)
end end
end end
...@@ -3,7 +3,7 @@ function c3422200.initial_effect(c) ...@@ -3,7 +3,7 @@ function c3422200.initial_effect(c)
--special summon (hand/grave) --special summon (hand/grave)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(3422200,0)) e1:SetDescription(aux.Stringid(3422200,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetCountLimit(1,3422200) e1:SetCountLimit(1,3422200)
...@@ -19,13 +19,13 @@ function c3422200.initial_effect(c) ...@@ -19,13 +19,13 @@ function c3422200.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_DESTROYED) e2:SetCode(EVENT_DESTROYED)
e2:SetCountLimit(1,3422201) e2:SetCountLimit(1,3422201)
e2:SetCondition(c3422200.spcon) e2:SetCondition(c3422200.spcon2)
e2:SetTarget(c3422200.sptg2) e2:SetTarget(c3422200.sptg2)
e2:SetOperation(c3422200.spop2) e2:SetOperation(c3422200.spop2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c3422200.cfilter(c) function c3422200.cfilter(c)
return c:IsSetCard(0xea) and c:IsDiscardable() return c:IsSetCard(0xea) and not c:IsCode(3422200) and c:IsDiscardable()
end end
function c3422200.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c3422200.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c3422200.cfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c3422200.cfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
...@@ -41,7 +41,7 @@ function c3422200.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c3422200.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)~=0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_ONFIELD,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_ONFIELD,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
...@@ -50,7 +50,7 @@ function c3422200.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c3422200.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(c,REASON_RULE) Duel.SendtoGrave(c,REASON_RULE)
end end
end end
function c3422200.spcon(e,tp,eg,ep,ev,re,r,rp) function c3422200.spcon2(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function c3422200.spfilter(c,e,tp) function c3422200.spfilter(c,e,tp)
......
...@@ -91,7 +91,7 @@ function c38572779.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -91,7 +91,7 @@ function c38572779.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
rg1:AddCard(c) rg1:AddCard(c)
Duel.Remove(rg1,POS_FACEUP,REASON_COST) Duel.Remove(rg1,POS_FACEUP,REASON_COST)
Duel.SetTargetParam(lv) e:SetLabel(lv)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c38572779.sfilter(c,e,tp,lv) function c38572779.sfilter(c,e,tp,lv)
...@@ -99,7 +99,7 @@ function c38572779.sfilter(c,e,tp,lv) ...@@ -99,7 +99,7 @@ function c38572779.sfilter(c,e,tp,lv)
end end
function c38572779.spop(e,tp,eg,ep,ev,re,r,rp) function c38572779.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local lv=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) local lv=e:GetLabel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c38572779.sfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,lv) local g=Duel.SelectMatchingCard(tp,c38572779.sfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,lv)
local tc=g:GetFirst() local tc=g:GetFirst()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
function c42600274.initial_effect(c) function c42600274.initial_effect(c)
--spsummon from hand --spsummon from hand
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetCode(EFFECT_SPSUMMON_PROC)
...@@ -40,6 +40,7 @@ function c42600274.hspop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -40,6 +40,7 @@ function c42600274.hspop(e,tp,eg,ep,ev,re,r,rp,c)
g=Duel.SelectReleaseGroup(tp,c42600274.hspfilter,1,1,nil,tp) g=Duel.SelectReleaseGroup(tp,c42600274.hspfilter,1,1,nil,tp)
end end
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
c:RegisterFlagEffect(0,RESET_EVENT+0x4fc0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(42600274,0))
end end
function c42600274.thcon(e,tp,eg,ep,ev,re,r,rp) function c42600274.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_RITUAL) return e:GetHandler():IsReason(REASON_RITUAL)
......
...@@ -31,6 +31,9 @@ end ...@@ -31,6 +31,9 @@ end
function c43722862.counterfilter(c) function c43722862.counterfilter(c)
return c:GetSummonLocation()~=LOCATION_EXTRA or (c:IsLevelAbove(5) and c:IsAttribute(ATTRIBUTE_WIND)) return c:GetSummonLocation()~=LOCATION_EXTRA or (c:IsLevelAbove(5) and c:IsAttribute(ATTRIBUTE_WIND))
end end
function c43722862.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
end
function c43722862.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c43722862.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(43722862,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(43722862,tp,ACTIVITY_SPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
...@@ -45,9 +48,6 @@ end ...@@ -45,9 +48,6 @@ end
function c43722862.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c43722862.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not (c:IsLevelAbove(5) and c:IsAttribute(ATTRIBUTE_WIND)) and c:IsLocation(LOCATION_EXTRA) return not (c:IsLevelAbove(5) and c:IsAttribute(ATTRIBUTE_WIND)) and c:IsLocation(LOCATION_EXTRA)
end end
function c43722862.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
end
function c43722862.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c43722862.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
......
...@@ -72,7 +72,7 @@ function c44944304.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,7 +72,7 @@ function c44944304.atkop(e,tp,eg,ep,ev,re,r,rp)
end end
function c44944304.spcon(e,tp,eg,ep,ev,re,r,rp) function c44944304.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousAttackOnField()>c:GetBaseAttack() return c:IsReason(REASON_EFFECT+REASON_BATTLE) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousAttackOnField()>c:GetBaseAttack()
end end
function c44944304.spfilter(c,e,tp) function c44944304.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -87,7 +87,6 @@ function c44944304.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -87,7 +87,6 @@ function c44944304.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c44944304.spop(e,tp,eg,ep,ev,re,r,rp) function c44944304.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
......
...@@ -36,7 +36,7 @@ function c45667991.rctg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -36,7 +36,7 @@ function c45667991.rctg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c45667991.rcfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c45667991.rcfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c45667991.rcfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c45667991.rcfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c45667991.rcfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,c45667991.rcfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end end
function c45667991.rcop1(e,tp,eg,ep,ev,re,r,rp) function c45667991.rcop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -10,58 +10,47 @@ function c45948430.initial_effect(c) ...@@ -10,58 +10,47 @@ function c45948430.initial_effect(c)
e1:SetOperation(c45948430.activate) e1:SetOperation(c45948430.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c45948430.filter(c,e,tp,mg) function c45948430.filter(c,e,tp)
if not c:IsSetCard(0x10cf) or bit.band(c:GetType(),0x81)~=0x81 if not c:IsSetCard(0x10cf) or bit.band(c:GetType(),0x81)~=0x81
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
local g=mg:Filter(Card.IsCanBeRitualMaterial,c,c) return Duel.IsExistingMatchingCard(c45948430.matfilter1,tp,LOCATION_HAND,0,1,c,tp,c)
if c.mat_filter then
g=g:Filter(c.mat_filter,nil)
end
return g:GetCount()>0
end end
function c45948430.matfilter1(c,tp) function c45948430.matfilter1(c,tp,rc)
local lv=c:GetLevel() local lv=c:GetLevel()
return lv>0 and lv<8 and c:IsAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK) and c:IsAbleToGrave() return lv>0 and lv<8 and c:IsAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK) and c:IsAbleToGrave() and c:IsCanBeRitualMaterial(rc)
and Duel.IsExistingMatchingCard(c45948430.matfilter2,tp,LOCATION_DECK,0,1,c,lv,c:GetAttribute()) and Duel.IsExistingMatchingCard(c45948430.matfilter2,tp,LOCATION_DECK,0,1,c,lv,c:GetAttribute(),rc)
end end
function c45948430.matfilter2(c,lv,att) function c45948430.matfilter2(c,lv,att,rc)
return ((c:IsAttribute(ATTRIBUTE_LIGHT) and att==ATTRIBUTE_DARK) or (c:IsAttribute(ATTRIBUTE_DARK) and att==ATTRIBUTE_LIGHT)) return ((c:IsAttribute(ATTRIBUTE_LIGHT) and att==ATTRIBUTE_DARK) or (c:IsAttribute(ATTRIBUTE_DARK) and att==ATTRIBUTE_LIGHT))
and c:GetLevel()==8-lv and c:IsAbleToGrave() and c:GetLevel()==8-lv and c:IsAbleToGrave() and c:IsCanBeRitualMaterial(rc)
end end
function c45948430.target(e,tp,eg,ep,ev,re,r,rp,chk) function c45948430.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local mg=Duel.GetMatchingGroup(c45948430.matfilter1,tp,LOCATION_HAND,0,nil,tp)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c45948430.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp,mg) and Duel.IsExistingMatchingCard(c45948430.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp)
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end end
function c45948430.activate(e,tp,eg,ep,ev,re,r,rp) function c45948430.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local mg=Duel.GetMatchingGroup(c45948430.matfilter1,tp,LOCATION_HAND,0,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=Duel.SelectMatchingCard(tp,c45948430.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp,mg) local rg=Duel.SelectMatchingCard(tp,c45948430.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc1=tg:GetFirst() local rc=rg:GetFirst()
if tc1 then if rc then
if tc1:IsHasEffect(EFFECT_NECRO_VALLEY) and Duel.IsChainDisablable(0) then if rc:IsHasEffect(EFFECT_NECRO_VALLEY) and Duel.IsChainDisablable(0) then
Duel.NegateEffect(0) Duel.NegateEffect(0)
return return
end end
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc1,tc1)
if tc1.mat_filter then
mg=mg:Filter(tc1.mat_filter,nil)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local mat=Duel.SelectMatchingCard(tp,c45948430.matfilter1,tp,LOCATION_HAND,0,1,1,nil,tp) local mat=Duel.SelectMatchingCard(tp,c45948430.matfilter1,tp,LOCATION_HAND,0,1,1,rc,tp,rc)
local tc2=mat:GetFirst() local mc=mat:GetFirst()
if not tc2 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local mat2=Duel.SelectMatchingCard(tp,c45948430.matfilter2,tp,LOCATION_DECK,0,1,1,nil,tc2:GetLevel(),tc2:GetAttribute()) local mat2=Duel.SelectMatchingCard(tp,c45948430.matfilter2,tp,LOCATION_DECK,0,1,1,nil,mc:GetLevel(),mc:GetAttribute(),rc)
mat:Merge(mat2) mat:Merge(mat2)
tc1:SetMaterial(mat) rc:SetMaterial(mat)
Duel.SendtoGrave(mat,REASON_EFFECT+REASON_MATERIAL+REASON_RITUAL) Duel.SendtoGrave(mat,REASON_EFFECT+REASON_MATERIAL+REASON_RITUAL)
Duel.BreakEffect() Duel.BreakEffect()
Duel.SpecialSummon(tc1,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP) Duel.SpecialSummon(rc,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP)
tc1:CompleteProcedure() rc:CompleteProcedure()
end end
end end
...@@ -39,7 +39,7 @@ function c47482043.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c47482043.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
end end
function c47482043.spfilter(c,e,tp) function c47482043.spfilter(c,e,tp)
return c:IsSetCard(0x7) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c47482043.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c47482043.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c47482043.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c47482043.spfilter(chkc,e,tp) end
......
...@@ -27,7 +27,6 @@ function c47882565.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -27,7 +27,6 @@ function c47882565.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c47882565.filter1(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c47882565.filter1(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingTarget(c47882565.filter1,tp,LOCATION_MZONE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c47882565.filter1,tp,LOCATION_MZONE,0,1,nil,e,tp) end
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c47882565.filter1,tp,LOCATION_MZONE,0,1,1,nil,e,tp) Duel.SelectTarget(tp,c47882565.filter1,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
......
...@@ -29,6 +29,7 @@ function c50065971.initial_effect(c) ...@@ -29,6 +29,7 @@ function c50065971.initial_effect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetRange(LOCATION_GRAVE) e4:SetRange(LOCATION_GRAVE)
e4:SetCode(EVENT_PHASE+PHASE_STANDBY) e4:SetCode(EVENT_PHASE+PHASE_STANDBY)
e4:SetCountLimit(1)
e4:SetCondition(c50065971.spcon) e4:SetCondition(c50065971.spcon)
e4:SetTarget(c50065971.sptg) e4:SetTarget(c50065971.sptg)
e4:SetOperation(c50065971.spop) e4:SetOperation(c50065971.spop)
......
...@@ -26,7 +26,7 @@ function c52022648.tglimit(e,c) ...@@ -26,7 +26,7 @@ function c52022648.tglimit(e,c)
return c~=e:GetHandler() return c~=e:GetHandler()
end end
function c52022648.tgval(e,re,rp) function c52022648.tgval(e,re,rp)
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) return re:IsActiveType(TYPE_SPELL)
end end
function c52022648.costfilter(c) function c52022648.costfilter(c)
return c:IsType(TYPE_SPELL) and c:IsDiscardable() return c:IsType(TYPE_SPELL) and c:IsDiscardable()
......
...@@ -63,7 +63,7 @@ function c52900000.retreg(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function c52900000.retreg(e,tp,eg,ep,ev,re,r,rp)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetReset(RESET_EVENT+0x1ee0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1ee0000+RESET_PHASE+PHASE_END)
e1:SetCondition(Auxiliary.SpiritReturnCondition) e1:SetCondition(aux.SpiritReturnCondition)
e1:SetTarget(c52900000.rettg) e1:SetTarget(c52900000.rettg)
e1:SetOperation(c52900000.retop) e1:SetOperation(c52900000.retop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -14,6 +14,7 @@ function c5489987.initial_effect(c) ...@@ -14,6 +14,7 @@ function c5489987.initial_effect(c)
--atk up --atk up
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(5489987,1)) e2:SetDescription(aux.Stringid(5489987,1))
e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_HAND) e2:SetRange(LOCATION_HAND)
...@@ -59,10 +60,11 @@ end ...@@ -59,10 +60,11 @@ end
function c5489987.atkcon(e,tp,eg,ep,ev,re,r,rp) function c5489987.atkcon(e,tp,eg,ep,ev,re,r,rp)
local phase=Duel.GetCurrentPhase() local phase=Duel.GetCurrentPhase()
if phase~=PHASE_DAMAGE or Duel.IsDamageCalculated() then return false end if phase~=PHASE_DAMAGE or Duel.IsDamageCalculated() then return false end
local tc=Duel.GetAttacker() local tc=Duel.GetAttackTarget()
if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end if not tc then return false end
if tc:IsControler(1-tp) then tc=Duel.GetAttacker() end
e:SetLabelObject(tc) e:SetLabelObject(tc)
return tc and tc:IsSetCard(0xe6) and tc:IsRelateToBattle() and Duel.GetAttackTarget()~=nil return tc:IsFaceup() and tc:IsSetCard(0xe6) and tc:IsRelateToBattle()
end end
function c5489987.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c5489987.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end if chk==0 then return e:GetHandler():IsDiscardable() end
......
...@@ -22,7 +22,7 @@ end ...@@ -22,7 +22,7 @@ end
function c65193366.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c65193366.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c65193366.spfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c65193366.spfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_DECK+LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_EXTRA)
end end
function c65193366.spop(e,tp,eg,ep,ev,re,r,rp) function c65193366.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
......
...@@ -27,6 +27,7 @@ function c70939418.initial_effect(c) ...@@ -27,6 +27,7 @@ function c70939418.initial_effect(c)
--deckdes --deckdes
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(70939418,2)) e3:SetDescription(aux.Stringid(70939418,2))
e3:SetCategory(CATEGORY_ATKCHANGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_BE_MATERIAL) e3:SetCode(EVENT_BE_MATERIAL)
e3:SetCondition(c70939418.ddcon) e3:SetCondition(c70939418.ddcon)
...@@ -73,7 +74,7 @@ function c70939418.scop(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,7 +74,7 @@ function c70939418.scop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.SynchroSummon(tp,sg:GetFirst(),c) Duel.SynchroSummon(tp,sg:GetFirst(),c,mg)
end end
end end
function c70939418.ddcon(e,tp,eg,ep,ev,re,r,rp) function c70939418.ddcon(e,tp,eg,ep,ev,re,r,rp)
...@@ -84,8 +85,7 @@ function c70939418.ddtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -84,8 +85,7 @@ function c70939418.ddtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,1)
end end
function c70939418.ddop(e,tp,eg,ep,ev,re,r,rp) function c70939418.ddop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then return end if Duel.DiscardDeck(tp,1,REASON_EFFECT)==0 then return end
Duel.DiscardDeck(tp,1,REASON_EFFECT)
local tc=Duel.GetOperatedGroup():GetFirst() local tc=Duel.GetOperatedGroup():GetFirst()
local c=e:GetHandler() local c=e:GetHandler()
local sync=c:GetReasonCard() local sync=c:GetReasonCard()
......
...@@ -3,7 +3,7 @@ function c73271204.initial_effect(c) ...@@ -3,7 +3,7 @@ function c73271204.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(73271204,0)) e1:SetDescription(aux.Stringid(73271204,0))
e1:SetCategory(CATEGORY_TOHAND) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
......
...@@ -39,10 +39,9 @@ function c73881652.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,10 +39,9 @@ function c73881652.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.GetMatchingGroup(c73881652.matfilter,tp,LOCATION_DECK,0,nil) local g=Duel.SelectMatchingCard(tp,c73881652.matfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
local og=g:Select(tp,1,1,nil) Duel.Overlay(tc,g)
Duel.Overlay(tc,og)
end end
end end
end end
...@@ -50,12 +49,12 @@ function c73881652.drcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,12 +49,12 @@ function c73881652.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c73881652.drfilter(c) function c73881652.drfilter(c,e)
return c:IsSetCard(0xf1) and c:IsAbleToDeck() return c:IsSetCard(0xf1) and c:IsAbleToDeck() and c:IsCanBeEffectTarget(e)
end end
function c73881652.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c73881652.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
local g=Duel.GetMatchingGroup(c73881652.drfilter,tp,LOCATION_GRAVE,0,e:GetHandler()) local g=Duel.GetMatchingGroup(c73881652.drfilter,tp,LOCATION_GRAVE,0,e:GetHandler(),e)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) if chk==0 then return Duel.IsPlayerCanDraw(tp,1)
and g:GetClassCount(Card.GetCode)>4 end and g:GetClassCount(Card.GetCode)>4 end
local sg=Group.CreateGroup() local sg=Group.CreateGroup()
......
...@@ -60,8 +60,7 @@ function c74003290.setcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,8 +60,7 @@ function c74003290.setcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c74003290.cfilter,1,nil,tp) return eg:IsExists(c74003290.cfilter,1,nil,tp)
end end
function c74003290.settg(e,tp,eg,ep,ev,re,r,rp,chk) function c74003290.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsSSetable() if chk==0 then return e:GetHandler():IsSSetable() end
and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end end
function c74003290.setop(e,tp,eg,ep,ev,re,r,rp) function c74003290.setop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -57,8 +57,7 @@ function c74393852.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,8 +57,7 @@ function c74393852.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c74393852.target(e,tp,eg,ep,ev,re,r,rp,chk) function c74393852.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND+LOCATION_ONFIELD) local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND+LOCATION_ONFIELD)
local sg=g:Filter(Card.IsAbleToGrave,nil) if chk==0 then return g:GetCount()>0 end
if chk==0 then return sg:GetCount()>0 end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,g:GetCount(),0,0)
end end
......
...@@ -16,24 +16,24 @@ function c78942513.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,24 +16,24 @@ function c78942513.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end end
function c78942513.filter(c) function c78942513.filter(c)
return c:IsSetCard(0x9d) and c:IsFaceup() and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x9d) and c:IsFaceup()
end end
function c78942513.tgfilter(c) function c78942513.tgfilter(c)
return c:IsSetCard(0x9d) and c:IsAbleToGrave() return c:IsSetCard(0x9d) and c:IsAbleToGrave()
end end
function c78942513.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c78942513.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c78942513.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c78942513.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c78942513.tgfilter,tp,LOCATION_MZONE,0,1,nil) if chk==0 then return Duel.IsExistingTarget(c78942513.filter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(c78942513.tgfilter,tp,LOCATION_HAND,0,1,nil) end and Duel.IsExistingMatchingCard(c78942513.tgfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c78942513.tgfilter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c78942513.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND)
end end
function c78942513.activate(e,tp,eg,ep,ev,re,r,rp) function c78942513.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c78942513.tgfilter,tp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c78942513.tgfilter,tp,LOCATION_HAND,0,1,1,nil)
if g:GetCount()>0 and Duel.SendtoGrave(g,REASON_EFFECT)>0 then if g:GetCount()>0 and Duel.SendtoGrave(g,REASON_EFFECT)>0 and g:IsExists(Card.IsLocation,1,LOCATION_GRAVE) then
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc:IsRelateToEffect(e) and tc:IsFaceup() then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -25,7 +25,7 @@ function c81055000.initial_effect(c) ...@@ -25,7 +25,7 @@ function c81055000.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c81055000.thfilter(c) function c81055000.thfilter(c)
return c:IsSetCard(0x9f) and c:IsAbleToHand() return c:IsFaceup() and c:IsSetCard(0x9f) and c:IsAbleToHand()
end end
function c81055000.thtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c81055000.thtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c81055000.thfilter(chkc) end if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c81055000.thfilter(chkc) end
......
...@@ -93,13 +93,13 @@ function c86238081.descost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -93,13 +93,13 @@ function c86238081.descost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c86238081.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c86238081.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 Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)>0 end
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) local sg=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,sg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,sg:GetCount(),0,0)
end end
function c86238081.desop(e,tp,eg,ep,ev,re,r,rp) function c86238081.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) local sg=Duel.Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD)
local ct=Duel.Destroy(sg,REASON_EFFECT) local ct=Duel.Destroy(sg,REASON_EFFECT)
if ct>0 and c:IsFaceup() and c:IsRelateToEffect(e) then if ct>0 and c:IsFaceup() and c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -120,7 +120,7 @@ function c86238081.valcheck(e,c) ...@@ -120,7 +120,7 @@ function c86238081.valcheck(e,c)
end end
function c86238081.pencon(e,tp,eg,ep,ev,re,r,rp) function c86238081.pencon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and c:IsPreviousLocation(LOCATION_MZONE) and c:IsFaceup() return c:IsPreviousLocation(LOCATION_MZONE) and c:IsFaceup()
end end
function c86238081.pentg(e,tp,eg,ep,ev,re,r,rp,chk) function c86238081.pentg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLocation(tp,LOCATION_SZONE,6) or Duel.CheckLocation(tp,LOCATION_SZONE,7) end if chk==0 then return Duel.CheckLocation(tp,LOCATION_SZONE,6) or Duel.CheckLocation(tp,LOCATION_SZONE,7) end
......
...@@ -85,7 +85,7 @@ function c88305705.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -85,7 +85,7 @@ function c88305705.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c88305705.rmop(e,tp,eg,ep,ev,re,r,rp) function c88305705.rmop(e,tp,eg,ep,ev,re,r,rp)
local bc=e:GetLabelObject() local bc=e:GetLabelObject()
if bc:IsRelateToBattle() then if bc:IsRelateToBattle() and bc:IsControler(1-tp) then
Duel.Remove(bc,POS_FACEUP,REASON_EFFECT) Duel.Remove(bc,POS_FACEUP,REASON_EFFECT)
end end
end end
...@@ -5,7 +5,7 @@ function c91588074.initial_effect(c) ...@@ -5,7 +5,7 @@ function c91588074.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCondition(c91588074.spcon) e1:SetCondition(c91588074.spcon)
e1:SetOperation(c91588074.spop) e1:SetOperation(c91588074.spop)
......
...@@ -66,17 +66,18 @@ function c99427357.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -66,17 +66,18 @@ function c99427357.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c99427357.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c99427357.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsControlerCanBeChanged() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsAbleToChangeControler() end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_CONTROL)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE,tp,0)>1
and Duel.IsExistingTarget(Card.IsAbleToChangeControler,tp,0,LOCATION_MZONE,1,nil)
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectTarget(tp,Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsAbleToChangeControler,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c99427357.operation(e,tp,eg,ep,ev,re,r,rp) function c99427357.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0
......
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