From c85df89e76db9a783b819c4548954246cf20286a Mon Sep 17 00:00:00 2001 From: KrecikOnDexin Date: Sun, 29 Dec 2024 20:00:11 +0100 Subject: [PATCH] fix monsters not following target (#4866) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marcin JaƂocha --- src/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monster.cpp b/src/monster.cpp index 7ebaa59f80..f50bec1e5a 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -589,7 +589,7 @@ void Monster::goToFollowCreature() if (isFleeing()) { getDistanceStep(followCreature->getPosition(), dir, true); - } else if (fpp.maxTargetDist > 1) { + } else { // maxTargetDist > 1 if (!getDistanceStep(followCreature->getPosition(), dir)) { // if we can't get anything then let the A* calculate updateFollowCreaturePath(fpp);