From 206d63231e0c87f22a0295b655e1a75de132c0d0 Mon Sep 17 00:00:00 2001 From: Michael Schmatz Date: Fri, 16 May 2014 09:47:15 -0700 Subject: [PATCH] Fixed teamSpells instantiation --- app/views/play/level_view.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/play/level_view.coffee b/app/views/play/level_view.coffee index 46b6804e0..8d45ddd10 100644 --- a/app/views/play/level_view.coffee +++ b/app/views/play/level_view.coffee @@ -198,7 +198,8 @@ module.exports = class PlayLevelView extends View for spellTeam, spells of @session.get('teamSpells') ? @otherSession?.get('teamSpells') ? {} continue if spellTeam is myTeam or not myTeam opponentSpells = opponentSpells.concat spells - + if (not @session.get('teamSpells')) and @otherSession?.get('teamSpells') + @session.set('teamSpells',@otherSession.get('teamSpells')) opponentCode = @otherSession?.get('transpiledCode') or {} myCode = @session.get('code') or {} for spell in opponentSpells