Yellow arrow shouldn't point to disabled levels

This commit is contained in:
Cat Sync 2015-06-01 17:39:55 -04:00
parent 187c7c6487
commit a3588b2801

View file

@ -303,7 +303,7 @@ module.exports = class CampaignView extends RootView
for nextLevelOriginal in level.nextLevels
nextLevel = _.find levels, original: nextLevelOriginal
dontPointTo = ['lost-viking','kithgard-mastery']
if nextLevel and not nextLevel.locked and @levelStatusMap[nextLevel.slug] isnt 'complete' and nextLevel.slug not in dontPointTo and not nextLevel.replayable and (
if nextLevel and not nextLevel.locked and not nextLevel.disabled and @levelStatusMap[nextLevel.slug] isnt 'complete' and nextLevel.slug not in dontPointTo and not nextLevel.replayable and (
me.isPremium() or
not nextLevel.requiresSubscription or
nextLevel.slug is 'apocalypse' or