Why does the creep.dismantle(target) method fail on STRUCTURE_INVADER_CORE?
-
According to the documentation (https://docs.screeps.com/api/#Creep.dismantle), the creep.dismantle(target) method should be applied to Structure. StructureInvaderCore is a Structure. Why does the method returns ERR_INVALID_TARGET (-7, The target is not a valid structure object)?
-
InvaderCores are a bit of an exceptions; they're not player structures, so cannot be built, repaired or dismantled. The in-game explanation for that is that "their technology is foreign to us".