mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Fixed #814.
This commit is contained in:
parent
871cd4b3c9
commit
6ff01f7deb
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ module.exports = class LevelBus extends Bus
|
|||
@changedSessionProperties.teamSpells = true
|
||||
@session.set({'teamSpells': @teamSpellMap})
|
||||
@saveSession()
|
||||
if spellTeam is me.team or spellTeam is 'common'
|
||||
if spellTeam is me.team or (e.spell.otherSession and spellTeam isnt e.spell.otherSession.get('team'))
|
||||
# https://github.com/codecombat/codecombat/issues/81
|
||||
@onSpellChanged e # Save the new spell to the session, too.
|
||||
|
||||
onScriptStateChanged: (e) ->
|
||||
|
|
Loading…
Reference in a new issue