Mirroar / hivemind

Fully automated open source AI core for the game screeps. Also usable as an opponent on private servers.
MIT License
29 stars 10 forks source link

Add check for isUnderAttack() during dismantler spawn #77

Closed Jared87 closed 7 months ago

Jared87 commented 8 months ago

Since potentially dismantlers are continuously spawned and run into a room full of enemies to be killed, I have added this check.

Potentially this prevents the expansion into a remote mine if a wall has to be removed to start the mine. In this case, however, the dismantler should get escort protection.