From 2aba133c3cde618579582f0c8d9218b50a08a98b Mon Sep 17 00:00:00 2001 From: Hanmac Date: Fri, 12 Aug 2016 09:00:46 +0000 Subject: [PATCH] Cost: should not add Zero ManaCost --- forge-game/src/main/java/forge/game/cost/Cost.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/forge-game/src/main/java/forge/game/cost/Cost.java b/forge-game/src/main/java/forge/game/cost/Cost.java index 98e05ec4b11..85098b33024 100644 --- a/forge-game/src/main/java/forge/game/cost/Cost.java +++ b/forge-game/src/main/java/forge/game/cost/Cost.java @@ -749,7 +749,9 @@ public class Cost { CostPartMana costPart2 = this.getCostMana(); List toRemove = Lists.newArrayList(); for (final CostPart part : cost1.getCostParts()) { - if (part instanceof CostPartMana && costPart2 != null) { + if (part instanceof CostPartMana && ((CostPartMana) part).getMana().isZero()) { + continue; // do not add Zero Mana + } else if (part instanceof CostPartMana && costPart2 != null) { ManaCostBeingPaid oldManaCost = new ManaCostBeingPaid(((CostPartMana) part).getMana()); oldManaCost.addManaCost(costPart2.getMana()); String r2 = costPart2.getRestiction();