From 08c60e0b97f1bf5d6c5f1d32963bf5453cdf00a1 Mon Sep 17 00:00:00 2001 From: mostlikely4r Date: Sun, 9 Jun 2024 07:33:51 +0200 Subject: [PATCH] -Stay fix: Re-added stay position distance limitation. --- playerbot/strategy/actions/PositionAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playerbot/strategy/actions/PositionAction.cpp b/playerbot/strategy/actions/PositionAction.cpp index 0a149a91..cd0d5bd6 100644 --- a/playerbot/strategy/actions/PositionAction.cpp +++ b/playerbot/strategy/actions/PositionAction.cpp @@ -179,7 +179,7 @@ bool ReturnToStayPositionAction::isPossible() if (stayPosition.isSet()) { const float distance = bot->GetDistance(stayPosition.x, stayPosition.y, stayPosition.z); - if (distance > sPlayerbotAIConfig.reactDistance && 1==2) + if (distance > sPlayerbotAIConfig.reactDistance) { ai->TellError(GetMaster(), "The stay position is too far to return. I am going to stay where I am now");