Commit aa991a27 authored by mercury233's avatar mercury233

fix

parent edc8f2d4
......@@ -51,6 +51,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetLabel(sc:GetCode())
e1:SetTarget(s.slimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
......@@ -61,7 +62,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.slimit(e,c,sp,st,spos,tp,se)
return st&SUMMON_TYPE_SPECIAL==SUMMON_TYPE_SPECIAL and c:IsCode(e:GetLabel())
return c:IsCode(e:GetLabel())
end
function s.alimit(e,te)
return te:IsActiveType(TYPE_MONSTER) and te:GetHandler():IsCode(e:GetLabel())
......
......@@ -42,6 +42,7 @@ function s.initial_effect(c)
e3:SetOperation(s.desop)
c:RegisterEffect(e3)
end
aux.xyz_number[id]=1
function s.atcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
......
......@@ -55,7 +55,7 @@ function c101202047.checkop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(c101202047.checkfilter,nil)
local tc=g:GetFirst()
while tc do
Duel.RegisterFlagEffect(tp,101202047,RESET_PHASE+PHASE_END,0,1)
Duel.RegisterFlagEffect(tc:GetSummonPlayer(),101202047,RESET_PHASE+PHASE_END,0,1)
tc=g:GetNext()
end
end
......
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