Fix GameState counters for Permanents

This commit is contained in:
Sol
2017-04-09 02:36:22 +00:00
parent fdca55ae7e
commit 54de9f1009
2 changed files with 8 additions and 5 deletions

View File

@@ -328,11 +328,10 @@ public abstract class GameState {
}
private void applyCountersToGameEntity(GameEntity entity, String counterString) {
entity.setCounters(new HashMap<CounterType, Integer>());
//entity.setCounters(new HashMap<CounterType, Integer>());
String[] allCounterStrings = counterString.split(",");
for (final String counterPair : allCounterStrings) {
String[] pair = counterPair.split("=", 2);
entity.addCounter(CounterType.valueOf(pair[0]), Integer.parseInt(pair[1]), false, false);
}
}