Damaged Road Detection
-
var repair = creep.pos.findClosest(FIND_MY_STRUCTURES, { filter: function (object) { return object.hits < object.hitsMax; } });
this code snippet did not find a damaged road in my room, am i doing something incorrectly or is this a bug?
-
looks like just find_structures works, so roads do not belong to a player?
-
Yes, roads don't have owners
-
See this another forum post with the same question.