From 4176b35f2a2658b60bdabeb8b16104a6e2869dba Mon Sep 17 00:00:00 2001 From: Zzooouhh Date: Fri, 3 Nov 2017 19:15:35 +0100 Subject: [PATCH] Allowed choosing X=0 to act as an attack cost --- Mage.Sets/src/mage/cards/w/WarTax.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Mage.Sets/src/mage/cards/w/WarTax.java b/Mage.Sets/src/mage/cards/w/WarTax.java index 689779066c..d22850aff6 100644 --- a/Mage.Sets/src/mage/cards/w/WarTax.java +++ b/Mage.Sets/src/mage/cards/w/WarTax.java @@ -86,17 +86,15 @@ class WarTaxReplacementEffect extends ReplacementEffectImpl { Player player = game.getPlayer(event.getPlayerId()); if (player != null) { int amount = xCosts.calculate(game, source, this); - if (amount > 0) { - String mana = "{" + amount + '}'; - ManaCostsImpl cost = new ManaCostsImpl(mana); - if (cost.canPay(source, source.getSourceId(), event.getPlayerId(), game) - && player.chooseUse(Outcome.Benefit, "Pay " + mana + " to declare attacker?", source, game)) { - if (cost.payOrRollback(source, game, source.getSourceId(), event.getPlayerId())) { - return false; - } + String mana = "{" + amount + '}'; + ManaCostsImpl cost = new ManaCostsImpl(mana); + if (cost.canPay(source, source.getSourceId(), event.getPlayerId(), game) + && player.chooseUse(Outcome.Benefit, "Pay " + mana + " to declare attacker?", source, game)) { + if (cost.payOrRollback(source, game, source.getSourceId(), event.getPlayerId())) { + return false; } - return true; } + return true; } return false; }