Commit e50233c6 authored by TanakaKotoha's avatar TanakaKotoha

nanodesu

parent c1f11224
......@@ -7,7 +7,7 @@ function c81006028.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c81006028.sprcon)
e1:SetCondition(c81006028.spcon)
c:RegisterEffect(e1)
--immune
local e2=Effect.CreateEffect(c)
......@@ -34,15 +34,15 @@ function c81006028.initial_effect(c)
e4:SetOperation(c81006028.ctop)
c:RegisterEffect(e4)
end
function c81006028.cfilter(c)
function c81006028.filter(c)
return c:GetSequence()>=5
end
function c81006028.sprcon(e,c)
function c81006028.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c81006028.cfilter,tp,0,LOCATION_MZONE,0,1,nil)
and not Duel.IsExistingMatchingCard(c81006028.cfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(c81006028.filter,tp,0,LOCATION_MZONE,1,nil)
and not Duel.IsExistingMatchingCard(c81006028.filter,tp,LOCATION_MZONE,0,1,nil)
end
function c81006028.efilter(e,te)
return te:IsActiveType(TYPE_MONSTER) and te:GetOwner():GetSequence()>=5
......
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