filter on findClosestByPath doesn't work as intended?
-
-
Erm. It also doesn't work if I make the function call correctly:
-
... Further fiddling suggests that the filter function *does* always resolve as true right before I try to assign the job to the screep; so perhaps this is a problem with ramparts specifically fluctuating between full/not full, after all.
-
Wall, road and containers are structures that don't have owner. So you cannot find it with FIND_MY_STRUCTURES. You should use FIND_STRUCTURES for these buildings.
-
(edit: ignore me)