mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -05:00
Fixed bug with primary spell being unreadable and thus no spells showing up in old, multi-spell levels.
This commit is contained in:
parent
9afc98f447
commit
d0233fc999
1 changed files with 2 additions and 1 deletions
|
@ -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: ->
|
||||
|
|
Loading…
Reference in a new issue