Commit 94269d20 authored by mercury233's avatar mercury233 Committed by GitHub

fix

parent 89e09a07
...@@ -29,11 +29,14 @@ end ...@@ -29,11 +29,14 @@ end
function c19254117.condition(e,tp,eg,ep,ev,re,r,rp) function c19254117.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 c19254117.filter(c)
return c:IsFaceup() and c:IsDefenseAbove(0)
end
function c19254117.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c19254117.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 c19254117.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(c19254117.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,c19254117.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end end
function c19254117.activate(e,tp,eg,ep,ev,re,r,rp) function c19254117.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
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