Commit c6a11206 authored by mercury233's avatar mercury233

fix

parent f8343fff
......@@ -49,22 +49,19 @@ function c100257081.stop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc and Duel.SSet(tp,tc)~=0 then
Duel.ConfirmCards(1-tp,tc)
tc:RegisterFlagEffect(100257081,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetValue(c100257081.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetCondition(c100257081.aclimit)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
end
end
function c100257081.actfilter(c)
return c:IsSetCard(0xfe) and c:IsType(TYPE_MONSTER)
end
function c100257081.aclimit(e,re,tp)
return re:GetHandler():GetFlagEffect(100257081)~=0 and not Duel.IsExistingMatchingCard(c100257081.actfilter,tp,LOCATION_GRAVE,0,1,nil)
function c100257081.aclimit(e)
return not Duel.IsExistingMatchingCard(c100257081.actfilter,e:GetHandlerPlayer(),LOCATION_GRAVE,0,1,nil)
end
function c100257081.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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