Commit de64c902 authored by mercury233's avatar mercury233 Committed by GitHub

fix パワー・ウォール

parent 301ec5a5
......@@ -15,7 +15,7 @@ function c76403456.condition(e,tp,eg,ep,ev,re,r,rp)
end
function c76403456.target(e,tp,eg,ep,ev,re,r,rp,chk)
local val=math.ceil(Duel.GetBattleDamage(tp)/500)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,val)
if chk==0 then return val>0 and Duel.IsPlayerCanDiscardDeck(tp,val)
and not Duel.IsPlayerAffectedByEffect(tp,EFFECT_AVOID_BATTLE_DAMAGE) end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,0)
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