From 7e889a2a8073af70c1f3d265b5153c65d29ba411 Mon Sep 17 00:00:00 2001 From: Nick Winter <livelily@gmail.com> Date: Wed, 25 Feb 2015 18:09:55 -0800 Subject: [PATCH] Simulating games for Harrowland, now, too. Alternative way of loading hero when sticking with same hero from within level when changing inventory. --- app/views/play/modal/PlayHeroesModal.coffee | 1 + server/queues/scoring.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/play/modal/PlayHeroesModal.coffee b/app/views/play/modal/PlayHeroesModal.coffee index d93bc916f..038c44b46 100644 --- a/app/views/play/modal/PlayHeroesModal.coffee +++ b/app/views/play/modal/PlayHeroesModal.coffee @@ -295,6 +295,7 @@ module.exports = class PlayHeroesModal extends ModalView saveAndHide: -> hero = @selectedHero?.get('original') + hero ?= @visibleHero?.get('original') if @visibleHero?.loaded and not @visibleHero.locked unless hero console.error 'Somehow we tried to hide without having a hero selected yet...' noty { diff --git a/server/queues/scoring.coffee b/server/queues/scoring.coffee index 3632a2385..b07c94776 100644 --- a/server/queues/scoring.coffee +++ b/server/queues/scoring.coffee @@ -128,7 +128,7 @@ module.exports.getTwoGames = (req, res) -> ogresGameID = req.body.ogresGameID return if simulatorIsTooOld req, res #ladderGameIDs = ['greed', 'criss-cross', 'brawlwood', 'dungeon-arena', 'gold-rush', 'sky-span'] # Let's not give any extra simulations to old ladders. - ladderGameIDs = ['dueling-grounds', 'cavern-survival', 'multiplayer-treasure-grove'] + ladderGameIDs = ['dueling-grounds', 'cavern-survival', 'multiplayer-treasure-grove', 'harrowland'] levelID = _.sample ladderGameIDs sortLimit = 200 unless ogresGameID and humansGameID