Commit 6e80c558 authored by mercury233's avatar mercury233 Committed by GitHub

fix 封魔の呪印

parent ef32ed0d
......@@ -31,8 +31,7 @@ function c58851034.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c58851034.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
end
if Duel.Destroy(eg,REASON_EFFECT)>0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......@@ -41,6 +40,8 @@ function c58851034.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c58851034.aclimit)
e1:SetLabel(re:GetHandler():GetCode())
Duel.RegisterEffect(e1,tp)
end
end
end
function c58851034.aclimit(e,re,tp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsCode(e:GetLabel())
......
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