Commit b7a23b3d authored by nekrozar's avatar nekrozar Committed by mercury233

fix (#1007)

parent 7214efc3
...@@ -11,7 +11,7 @@ function c2561846.initial_effect(c) ...@@ -11,7 +11,7 @@ function c2561846.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c2561846.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c2561846.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
...@@ -19,7 +19,7 @@ function c2561846.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -19,7 +19,7 @@ function c2561846.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c2561846.operation(e,tp,eg,ep,ev,re,r,rp) function c2561846.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsControler(1-tp) then
tc:AddCounter(0x100e,1) tc:AddCounter(0x100e,1)
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