mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08: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();
|
super.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
int getDamage(UUID playerId) {
|
int getDamage(UUID playerId, Game game) {
|
||||||
return damageMap.getOrDefault(playerId, 0);
|
return game
|
||||||
|
.getOpponents(playerId)
|
||||||
|
.stream()
|
||||||
|
.filter(damageMap::containsKey)
|
||||||
|
.mapToInt(damageMap::get)
|
||||||
|
.sum();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue