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.
-
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.
-
@Crusher48 That is really not the point here...
-
@mrfaul no, but that is how most people handle it (such as Quorum). I honestly think this is a purposeful decision by the admins and not a bug (although I could be wrong).
-
Made Pull Request #76 pending if the devs accept the proposed change.
-
Fixed in commit 6ce66e.