mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 14:33:59 -04:00
Merge branch 'master' into production
This commit is contained in:
commit
d5c64f098c
1 changed files with 2 additions and 2 deletions
|
@ -31,14 +31,14 @@ module.exports = class LevelSession extends CocoModel
|
|||
return false unless team = @get('team')
|
||||
return true unless c2 = @get('submittedCode')
|
||||
thangSpellArr = (s.split('/') for s in @get('teamSpells')[team])
|
||||
for item in thangSpellAr
|
||||
for item in thangSpellArr
|
||||
thang = item[0]
|
||||
spell = item[1]
|
||||
return true if c1[thang][spell] isnt c2[thang]?[spell]
|
||||
false
|
||||
|
||||
isMultiplayer: ->
|
||||
@get('submittedCode')?
|
||||
@get('submittedCodeLanguage')? and @get('team')?
|
||||
|
||||
completed: ->
|
||||
@get('state')?.complete || false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue