Commit 1ec8804b authored by Nemo Ma's avatar Nemo Ma

d

parent 318c7a4b
......@@ -47,7 +47,7 @@ function cm.checkop3(e,tp,eg,ep,ev,re,r,rp)
local tg=eg:Filter(Card.IsLocation,nil,LOCATION_MZONE)
if #tg>0 then
for tc in aux.Next(tg) do
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,1)
tc:RegisterFlagEffect(m+1,RESET_EVENT+RESETS_STANDARD,0,1)
end
end
end
......@@ -55,12 +55,12 @@ function cm.checkop6(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetMatchingGroup(cm.ctgfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
if #tg>0 then
for tc in aux.Next(tg) do
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,1)
tc:RegisterFlagEffect(m+1,RESET_EVENT+RESETS_STANDARD,0,1)
end
end
end
function cm.ctgfilter(c)
return c:GetOwnerTargetCount()>0 and c:GetFlagEffect(m)==0
return c:GetOwnerTargetCount()>0 and c:GetFlagEffect(m+1)==0
end
function cm.filter(c,tp)
return c:IsControler(tp)
......@@ -120,7 +120,7 @@ function cm.sccost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST)
end
function cm.cfilter(c)
return c:IsFaceup() and c:GetFlagEffect(m)==0
return c:IsFaceup() and c:GetFlagEffect(m+1)==0
end
function cm.sctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
......@@ -171,5 +171,5 @@ function cm.sumlimit2(e,c,sump,sumtype,sumpos,targetp)
local g=Duel.GetMatchingGroup(cm.cfilter2,0,LOCATION_MZONE,LOCATION_MZONE,nil,e:GetLabel())
local ac=g:GetFirst()
local bc=g:GetNext()
return not (not c:IsAttribute(ac:GetAttribute()) and (not bc or not c:IsAttribute(bc:GetAttribute())))
return not (c:GetAttribute()~=ac:GetAttribute() and (not bc or c:GetAttribute()~=bc:GetAttribute()))
end
\ No newline at end of file
......@@ -26,7 +26,6 @@ function c60001038.initial_effect(c)
e4:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e4:SetType(EFFECT_TYPE_ACTIVATE)
e4:SetCode(EVENT_CHAINING)
e4:SetCountLimit(1,60001038)
e4:SetCondition(c60001038.condition2)
e4:SetCost(c60001038.cost2)
e4:SetTarget(c60001038.target2)
......@@ -39,6 +38,7 @@ function c60001038.initial_effect(c)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetCode(EVENT_TO_GRAVE)
e5:SetProperty(EFFECT_FLAG_DELAY)
e5:SetCountLimit(1,60001038)
e5:SetTarget(c60001038.thtg)
e5:SetOperation(c60001038.thop)
c:RegisterEffect(e5)
......
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