bencbartlett / Overmind

AI for Screeps, a multiplayer programming strategy game
MIT License
545 stars 155 forks source link

Bug fix01 manager.ts #188

Closed zGeneral closed 3 years ago

zGeneral commented 3 years ago

there is a bug in manager.ts basically, the manager gets stuck on top of the tombstone of the previous dead manager trying to pickup its dropped resources without checking if it has resources left in the first place. a simple fix would be to check _.sum(tombstone.store) > 0

currently, the manager would stay idle (stuck) until the tombstone decays.