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