mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Made sure items equip themselves within the SpriteBoss, too.
This commit is contained in:
parent
eceac0bbc9
commit
74283bafed
1 changed files with 1 additions and 0 deletions
|
@ -181,6 +181,7 @@ module.exports = class SpriteBoss extends CocoClass
|
|||
# Add anything new, remove anything old, update everything current
|
||||
updateCache = false
|
||||
for thang in @world.thangs when thang.exists
|
||||
thang.equip() if thang.equip and not thang.equipped # Pretty hacky, since initialize may not be called
|
||||
if sprite = @sprites[thang.id]
|
||||
sprite.setThang thang # make sure Sprite has latest Thang
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue