From 62bd9b8b3dd340144893f54090799e8c3b9e6d7a Mon Sep 17 00:00:00 2001 From: Plopman Date: Thu, 10 Jan 2013 17:53:29 +0100 Subject: [PATCH] Fixed Vampire Hexmage --- Mage.Sets/src/mage/sets/zendikar/VampireHexmage.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/sets/zendikar/VampireHexmage.java b/Mage.Sets/src/mage/sets/zendikar/VampireHexmage.java index 323eae0cdd..d17ef0d476 100644 --- a/Mage.Sets/src/mage/sets/zendikar/VampireHexmage.java +++ b/Mage.Sets/src/mage/sets/zendikar/VampireHexmage.java @@ -27,6 +27,7 @@ */ package mage.sets.zendikar; +import java.util.Iterator; import java.util.UUID; import mage.Constants.CardType; @@ -40,6 +41,7 @@ import mage.abilities.costs.common.SacrificeSourceCost; import mage.abilities.effects.OneShotEffect; import mage.abilities.keyword.FirstStrikeAbility; import mage.cards.CardImpl; +import mage.counters.Counter; import mage.game.Game; import mage.game.permanent.Permanent; import mage.target.TargetPermanent; @@ -100,10 +102,8 @@ class VampireHexmageEffect extends OneShotEffect { Permanent permanent = game.getPermanent(target.getFirstTarget()); if (permanent != null) { - String[] counterNames = permanent.getCounters().keySet().toArray(new String[0]); - - for (String counterName : counterNames) { - permanent.getCounters().remove(counterName); + for(Counter counter : permanent.getCounters().values()){ + permanent.removeCounters(counter, game); } return true;