mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fixed playing multiplayer levels without an opponent, against the AI.
This commit is contained in:
parent
6813279871
commit
1f29a923cf
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue