Can not .destroy() hostile spawns in owned rooms
Calling .destroy() on hostile spawns (experienced on "Screeps"-owned spawn) does not work in code, tested in code and by console.
This was in a room I own, and destroying all other structures work. Returns -1 (ERR_NOT_OWNER)
I've looked through the engine-code, but could not figure out why this happends. Destroying them in the UI works.
Crusher48 last edited by
Another alternative would be to have a creep with a WORK part use the dismantle action on the spawn until it is destroyed. This also gives you extra energy.
MrFaul last edited by
@Crusher48 That is really not the point here...
WolfWings last edited by
Made Pull Request #76 pending if the devs accept the proposed change.
Fixed in commit 6ce66e.