Commit 54625342 authored by VanillaSalt's avatar VanillaSalt

fix

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