From 87ffcf737f0bca146842bc6136a046ca0c1d958a Mon Sep 17 00:00:00 2001 From: Sloth Date: Fri, 26 Jul 2013 05:57:38 +0000 Subject: [PATCH] - Fixed AddCounter costs with amount of 0. --- src/main/java/forge/card/cost/CostPutCounter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/forge/card/cost/CostPutCounter.java b/src/main/java/forge/card/cost/CostPutCounter.java index 6a7db1cca98..901c041a819 100644 --- a/src/main/java/forge/card/cost/CostPutCounter.java +++ b/src/main/java/forge/card/cost/CostPutCounter.java @@ -306,7 +306,9 @@ public class CostPutCounter extends CostPartWithList { targetCard.getCounters().put(counterType, Integer.valueOf(newValue)); } // added c - 1 without firing triggers, the last counter added should fire trigger. - executePayment(ability, targetCard); + if (c > 0) { + executePayment(ability, targetCard); + } }