1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-13 17:00:09 -09:00

added another fix for Chandra's Incinerator ()

This commit is contained in:
Evan Kranzler 2020-06-22 22:56:54 -04:00
parent 77d5b37ca6
commit dd22905e9d

View file

@ -119,8 +119,13 @@ class ChandrasIncineratorWatcher extends Watcher {
super.reset();
}
int getDamage(UUID playerId) {
return damageMap.getOrDefault(playerId, 0);
int getDamage(UUID playerId, Game game) {
return game
.getOpponents(playerId)
.stream()
.filter(damageMap::containsKey)
.mapToInt(damageMap::get)
.sum();
}
}