From 2f4d3276e81114a4da919131bac487696c6d2e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Thu, 30 Mar 2023 11:55:43 -0600 Subject: [PATCH] Don't grind/rpg with objects more than 5y away if master is not resting --- src/strategy/actions/ChooseRpgTargetAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/actions/ChooseRpgTargetAction.cpp b/src/strategy/actions/ChooseRpgTargetAction.cpp index 4f460f70..57091017 100644 --- a/src/strategy/actions/ChooseRpgTargetAction.cpp +++ b/src/strategy/actions/ChooseRpgTargetAction.cpp @@ -303,7 +303,7 @@ bool ChooseRpgTargetAction::isFollowValid(Player* bot, WorldPosition pos) return true; } - if (inDungeon && realMaster == master && distance > 5.0f) + if ((inDungeon || !master->HasPlayerFlag(PLAYER_FLAGS_RESTING)) && realMaster == master && distance > 5.0f) return false; if (!master->isMoving() && distance < 25.0f)