Commit 54625342 authored by VanillaSalt's avatar VanillaSalt

fix

parent b2d5ced1
......@@ -15,11 +15,14 @@ end
function c16430187.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end
function c16430187.filter(c)
return c:IsFaceup() and c:IsDefenseAbove(0)
end
function c16430187.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c16430187.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c16430187.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SelectTarget(tp,c16430187.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end
function c16430187.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
......
......@@ -9,7 +9,7 @@ function c38552107.initial_effect(c)
e1:SetTarget(c38552107.target)
e1:SetOperation(c38552107.operation)
c:RegisterEffect(e1)
--Atk up
--Def up
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
e2:SetCode(EFFECT_UPDATE_DEFENSE)
......@@ -36,7 +36,7 @@ function c38552107.initial_effect(c)
c:RegisterEffect(e4)
end
function c38552107.filter(c)
return c:IsFaceup() and c:IsDefenseAbove(0)
return c:IsFaceup()
end
function c38552107.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c38552107.filter(chkc) 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