Fix Emissary of Soulfire (#5350)

This commit is contained in:
tool4ever
2024-06-01 18:55:58 +02:00
committed by GitHub
parent 6a672eedb5
commit d49126d95c
2 changed files with 10 additions and 1 deletions

View File

@@ -1657,7 +1657,12 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
long timestamp = game.getNextTimestamp();
counterTypeTimestamps.put(counterType, timestamp);
addChangedCardKeywords(ImmutableList.of(counterType.toString()), null, false, timestamp, 0, updateView);
int num = 1;
if (!Keyword.smartValueOf(counterType.toString().split(":")[0]).isMultipleRedundant()) {
num = getCounters(counterType);
}
addChangedCardKeywords(Collections.nCopies(num, counterType.toString()), null, false, timestamp, 0, updateView);
return true;
}

View File

@@ -336,4 +336,8 @@ public enum Keyword {
}
return result;
}
public boolean isMultipleRedundant() {
return isMultipleRedundant;
}
}