Fixed playing multiplayer levels without an opponent, against the AI.

This commit is contained in:
Nick Winter 2014-06-21 12:24:14 -07:00
parent 6813279871
commit 1f29a923cf

View file

@ -164,6 +164,7 @@ module.exports = class Spell
isEnemySpell: ->
return false unless @permissions.readwrite.length
return false unless @otherSession
teamSpells = @session.get('teamSpells')
team = @session.get('team') ? 'humans'
teamSpells and not _.contains(teamSpells[team], @spellKey)