mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-22 10:55:19 -04:00
Fixed DuelStatsView power totals including future units.
This commit is contained in:
parent
b3496cbf6b
commit
a13ccb7360
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ module.exports = class DuelStatsView extends CocoView
|
|||
palisade: 10
|
||||
peasant: 50
|
||||
powers = humans: 0, ogres: 0
|
||||
for thang in @options.thangs when thang.health > 0
|
||||
for thang in @options.thangs when thang.health > 0 and thang.exists
|
||||
powers[thang.team] += @costTable[thang.type] or 0 if powers[thang.team]?
|
||||
for player in @players
|
||||
utils.replaceText @$find(player.team, '.power-value'), powers[player.team]
|
||||
|
|
Loading…
Reference in a new issue