From d0233fc9994e39755fd4c92f7110ad91f6941521 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Tue, 18 Nov 2014 07:42:49 -0800 Subject: [PATCH] Fixed bug with primary spell being unreadable and thus no spells showing up in old, multi-spell levels. --- app/views/play/level/tome/TomeView.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/play/level/tome/TomeView.coffee b/app/views/play/level/tome/TomeView.coffee index 1e7e00789..bda4bdacf 100644 --- a/app/views/play/level/tome/TomeView.coffee +++ b/app/views/play/level/tome/TomeView.coffee @@ -222,7 +222,8 @@ module.exports = class TomeView extends CocoView if spellName spell = _.find selectedThangSpells, {name: spellName} else - spell = _.find selectedThangSpells, (spell) -> true # Just grab one + spell = _.find selectedThangSpells, (spell) -> spell.canWrite() + spell ?= _.find selectedThangSpells, (spell) -> spell.canRead() spell reloadAllCode: ->