mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fixed #935.
This commit is contained in:
parent
eca35ce371
commit
bea0589fad
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
|||
@warnedFor ?= {}
|
||||
console.warn 'Cannot show action', action, 'for', @thangType.get('name'), 'because it DNE' unless @warnedFor[action]
|
||||
@warnedFor[action] = true
|
||||
return null
|
||||
return if @action is 'idle' then null else 'idle'
|
||||
action = 'break' if @actions.break? and @thang?.erroredOut
|
||||
action = 'die' if @actions.die? and thang?.health? and thang.health <= 0
|
||||
@actions[action]
|
||||
|
|
Loading…
Reference in a new issue