mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Fix GameState counters for Permanents
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user