diff --git a/Mage/src/main/java/mage/counters/Counters.java b/Mage/src/main/java/mage/counters/Counters.java index 6adbc3aa3d..93667bcb35 100644 --- a/Mage/src/main/java/mage/counters/Counters.java +++ b/Mage/src/main/java/mage/counters/Counters.java @@ -57,8 +57,12 @@ public class Counters extends HashMap implements Serializable { } public void addCounter(Counter counter) { - putIfAbsent(counter.name, counter); - get(counter.name).add(counter.getCount()); + if (!containsKey(counter.name)) { + put(counter.name, counter); + } else { + + get(counter.name).add(counter.getCount()); + } }