mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -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
|
if spellName
|
||||||
spell = _.find selectedThangSpells, {name: spellName}
|
spell = _.find selectedThangSpells, {name: spellName}
|
||||||
else
|
else
|
||||||
spell = _.find selectedThangSpells, (spell) -> true # Just grab one
|
spell = _.find selectedThangSpells, (spell) -> spell.canWrite()
|
||||||
|
spell ?= _.find selectedThangSpells, (spell) -> spell.canRead()
|
||||||
spell
|
spell
|
||||||
|
|
||||||
reloadAllCode: ->
|
reloadAllCode: ->
|
||||||
|
|
Loading…
Reference in a new issue