ERR_NOT_IN_RANGE
The target exists, but the acting object does not satisfy the method's range rule. Confirm the real return code before deciding to move.
What should I check next?
- Confirm that the target exists and is valid for the current method.
- Store the action result and enter the range branch only when the real result is -9.
- For Creep actions, inspect the current range before deciding whether to call moveTo().
- Retry the original action on a later tick and verify position, Store, or target state.