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)?