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
|
for goal in e.goals
|
||||||
state = e.goalStates[goal.id]
|
state = e.goalStates[goal.id]
|
||||||
continue if goal.hiddenGoal and state.status isnt 'failure'
|
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
|
text = goal.i18n?[me.lang()]?.name ? goal.name
|
||||||
if state.killed
|
if state.killed
|
||||||
dead = _.filter(_.values(state.killed)).length
|
dead = _.filter(_.values(state.killed)).length
|
||||||
|
|
Reference in a new issue