Commit d8f49ce9 authored by VanillaSalt's avatar VanillaSalt

fix

parent d4297f71
...@@ -37,20 +37,20 @@ end ...@@ -37,20 +37,20 @@ end
function c4335427.spcon(e,c) function c4335427.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.IsExistingMatchingCard(c4335427.spfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,TYPE_RITUAL) return Duel.IsExistingMatchingCard(c4335427.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,TYPE_RITUAL)
and Duel.IsExistingMatchingCard(c4335427.spfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,TYPE_FUSION) and Duel.IsExistingMatchingCard(c4335427.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,TYPE_FUSION)
and Duel.IsExistingMatchingCard(c4335427.spfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,TYPE_SYNCHRO) and Duel.IsExistingMatchingCard(c4335427.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,TYPE_SYNCHRO)
and Duel.IsExistingMatchingCard(c4335427.spfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,TYPE_XYZ) and Duel.IsExistingMatchingCard(c4335427.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,TYPE_XYZ)
end end
function c4335427.spop(e,tp,eg,ep,ev,re,r,rp,c) function c4335427.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g1=Duel.SelectMatchingCard(tp,c4335427.spfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,TYPE_RITUAL) local g1=Duel.SelectMatchingCard(tp,c4335427.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,TYPE_RITUAL)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=Duel.SelectMatchingCard(tp,c4335427.spfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,TYPE_FUSION) local g2=Duel.SelectMatchingCard(tp,c4335427.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,TYPE_FUSION)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g3=Duel.SelectMatchingCard(tp,c4335427.spfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,TYPE_SYNCHRO) local g3=Duel.SelectMatchingCard(tp,c4335427.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,TYPE_SYNCHRO)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g4=Duel.SelectMatchingCard(tp,c4335427.spfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,TYPE_XYZ) local g4=Duel.SelectMatchingCard(tp,c4335427.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,TYPE_XYZ)
g1:Merge(g2) g1:Merge(g2)
g1:Merge(g3) g1:Merge(g3)
g1:Merge(g4) g1:Merge(g4)
......
...@@ -8,8 +8,9 @@ function c74329404.initial_effect(c) ...@@ -8,8 +8,9 @@ function c74329404.initial_effect(c)
--counter --counter
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_LEAVE_FIELD) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_DESTROY)
e2:SetCondition(c74329404.ctcon) e2:SetCondition(c74329404.ctcon)
e2:SetOperation(c74329404.ctop) e2:SetOperation(c74329404.ctop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -30,7 +31,7 @@ function c74329404.initial_effect(c) ...@@ -30,7 +31,7 @@ function c74329404.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c74329404.ctfilter(c,tp) function c74329404.ctfilter(c,tp)
return c:IsReason(REASON_DESTROY) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousControler()==tp and c:IsSetCard(0xc008) return c:IsFaceup() and c:IsSetCard(0xc008) and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)
end end
function c74329404.ctcon(e,tp,eg,ep,ev,re,r,rp) function c74329404.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c74329404.ctfilter,1,nil,tp) return eg:IsExists(c74329404.ctfilter,1,nil,tp)
......
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