Made goals for other teams invisible.

This commit is contained in:
Scott Erickson 2014-02-10 12:49:38 -08:00
parent d95b66df0a
commit 9f5b51da19

View file

@ -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