added another fix for Chandra's Incinerator (#6646)

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();
}
}