Commit 65cb71a2 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix (#1914)

parent 8355cd9e
...@@ -14,7 +14,7 @@ function c4857085.initial_effect(c) ...@@ -14,7 +14,7 @@ function c4857085.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_EQUIP_LIMIT) e2:SetCode(EFFECT_EQUIP_LIMIT)
e2:SetValue(1) e2:SetValue(c4857085.eqlimit)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--confirm --confirm
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -27,6 +27,9 @@ function c4857085.initial_effect(c) ...@@ -27,6 +27,9 @@ function c4857085.initial_effect(c)
e3:SetOperation(c4857085.cfop) e3:SetOperation(c4857085.cfop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c4857085.eqlimit(e,c)
return c:IsControler(e:GetHandlerPlayer())
end
function c4857085.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c4857085.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) 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