mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
Made goals for other teams invisible.
This commit is contained in:
parent
d95b66df0a
commit
9f5b51da19
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ module.exports = class GoalsView extends View
|
|||
for goal in e.goals
|
||||
state = e.goalStates[goal.id]
|
||||
continue if goal.hiddenGoal and state.status isnt 'failure'
|
||||
continue if goal.team and me.team isnt goal.team
|
||||
text = goal.i18n?[me.lang()]?.name ? goal.name
|
||||
if state.killed
|
||||
dead = _.filter(_.values(state.killed)).length
|
||||
|
|
Loading…
Reference in a new issue