From 62283d8c2f0f30817e72b31655b8cad11ae39da7 Mon Sep 17 00:00:00 2001 From: Richard Krug Date: Sat, 7 Mar 2026 01:22:11 +0100 Subject: [PATCH] fix: do not calculate new path in creep.moveTo when creep is fatigued, visualizePathStyle is set, and valid memorized path exists --- src/game/creeps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/creeps.js b/src/game/creeps.js index 07fb0147..f7d11aa8 100644 --- a/src/game/creeps.js +++ b/src/game/creeps.js @@ -270,8 +270,8 @@ exports.make = function(_runtimeData, _intents, _register, _globals) { } var result = this.moveByPath(path); - if(result == C.OK) { - return C.OK; + if(result == C.OK || result == C.ERR_TIRED) { + return result; } } }