Creep.repair returns OK if target is in a different room
-
Expected ERR_NOT_IN_RANGE, but got OK. Code sample:
let res = creep.repair(target);
if(res === OK) {
// good job, little creep
} else if(res === ERR_NOT_IN_RANGE) {
creep.moveTo(target);
}Unfortunately, the little creep doesn't do a very good job in this situation.
-
Thanks for reporting, fixed.