This commit is contained in:
Nick Winter 2014-08-26 18:11:35 -07:00
parent 871cd4b3c9
commit 6ff01f7deb

View file

@ -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) ->