mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-22 02:45:29 -04:00
Update GoalManager.coffee
For compound goals like GetAllToLocation, you should continue adding to the existing list of thang states.
This commit is contained in:
parent
d94856d00c
commit
93d117100a
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ module.exports = class GoalManager extends CocoClass
|
|||
|
||||
arrays = (prop for prop in whos when prop?.length)
|
||||
return unless arrays.length
|
||||
state[progressObjectName] = {}
|
||||
state[progressObjectName] = state[progressObjectName] ? {}
|
||||
for array in arrays
|
||||
for thang in array
|
||||
if @thangTeams[thang]?
|
||||
|
|
Loading…
Reference in a new issue