mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-01 07:40:22 -04:00
Tweaked an error message to be more generally useful.
This commit is contained in:
parent
0a8d5b5b97
commit
af265ebee8
1 changed files with 3 additions and 1 deletions
|
@ -252,7 +252,9 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
|||
updateAction: ->
|
||||
action = @determineAction()
|
||||
isDifferent = action isnt @currentRootAction
|
||||
console.error "action is", action, "for", @thang?.id, "from", @currentRootAction, @thang.action, @thang.getActionName?() if not action and @thang?.actionActivated and @thang.id is 'Artillery'
|
||||
if not action and @thang?.actionActivated and not @stopLogging
|
||||
console.error "action is", action, "for", @thang?.id, "from", @currentRootAction, @thang.action, @thang.getActionName?()
|
||||
@stopLogging = true
|
||||
@queueAction(action) if isDifferent or (@thang?.actionActivated and action.name isnt 'move')
|
||||
@updateActionDirection()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue