From 2ec225b0d0d7cf8bbb97c7d100e4b50a1ed7f896 Mon Sep 17 00:00:00 2001 From: Nick Winter <livelily@gmail.com> Date: Sun, 27 Apr 2014 14:30:32 -0700 Subject: [PATCH] Enabled API protection for Find the Spy. --- app/views/play/level/tome/tome_view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/play/level/tome/tome_view.coffee b/app/views/play/level/tome/tome_view.coffee index 3abf08f8c..c22c02429 100644 --- a/app/views/play/level/tome/tome_view.coffee +++ b/app/views/play/level/tome/tome_view.coffee @@ -119,7 +119,7 @@ module.exports = class TomeView extends View spellKey = pathComponents.join '/' @thangSpells[thang.id].push spellKey unless method.cloneOf - skipProtectAPI = @getQueryVariable "skip_protect_api", not @options.ladderGame + skipProtectAPI = @getQueryVariable "skip_protect_api", not @options.ladderGame and not (@options.levelID in ['find-the-spy']) skipFlow = @getQueryVariable "skip_flow", (@options.levelID in ['brawlwood', 'greed', 'gold-rush']) spell = @spells[spellKey] = new Spell programmableMethod: method, spellKey: spellKey, pathComponents: pathPrefixComponents.concat(pathComponents), session: @options.session, supermodel: @supermodel, skipFlow: skipFlow, skipProtectAPI: skipProtectAPI, worker: @worker for thangID, spellKeys of @thangSpells