Commit 6912d820 authored by Huangnan's avatar Huangnan

fix Supreme King Gate Magician

parent 522101f1
...@@ -11,9 +11,9 @@ function s.initial_effect(c) ...@@ -11,9 +11,9 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_REMOVE) e1:SetCode(EFFECT_CANNOT_REMOVE)
e1:SetRange(LOCATION_PZONE) e1:SetRange(LOCATION_PZONE)
e1:SetTargetRange(LOCATION_ONFIELD,0) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTarget(s.indtg) e1:SetTargetRange(1,1)
e1:SetValue(s.indval) e1:SetTarget(s.rmlimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--pendulum set --pendulum set
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -47,11 +47,10 @@ function s.initial_effect(c) ...@@ -47,11 +47,10 @@ function s.initial_effect(c)
e4:SetOperation(s.thop) e4:SetOperation(s.thop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function s.indtg(e,c) function s.rmlimit(e,c,rp,r,re)
return c:IsFaceup() and c:IsCode(13331639) local tp=e:GetHandlerPlayer()
end return c:IsControler(tp) and c:IsOnField() and c:IsCode(13331639) and c:IsFaceup()
function s.indval(e,re,tp) and r&REASON_EFFECT~=0 and re:GetOwnerPlayer()~=tp
return e:GetHandler():GetControler()~=tp
end end
function s.penfilter(c) function s.penfilter(c)
return c:IsSetCard(0x10f8) and c:IsType(TYPE_PENDULUM) and not c:IsCode(id) and not c:IsForbidden() return c:IsSetCard(0x10f8) and c:IsType(TYPE_PENDULUM) and not c:IsCode(id) and not c:IsForbidden()
......
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