mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
added another fix for Chandra's Incinerator (#6646)
This commit is contained in:
parent
77d5b37ca6
commit
dd22905e9d
1 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue