mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fixed busted item crash.
This commit is contained in:
parent
df51e28a1d
commit
79ac94d84a
1 changed files with 2 additions and 2 deletions
|
@ -224,8 +224,8 @@ module.exports = class LankBoss extends CocoClass
|
|||
item = @world.getThangByID itemID
|
||||
unless item.equipped
|
||||
console.log thang.id, 'equipping', item, 'in', thang.slot, 'Surface-side, but it cannot equip?' unless item.equip
|
||||
item.equip()
|
||||
itemsJustEquipped.push item
|
||||
item.equip?()
|
||||
itemsJustEquipped.push item if item.equip
|
||||
return itemsJustEquipped
|
||||
|
||||
cacheObstacles: (updatedObstacles=null) ->
|
||||
|
|
Loading…
Reference in a new issue