From 7e7fb7b758ac26b9e87aa33b79bdd43f315b3dfc Mon Sep 17 00:00:00 2001 From: nytmyr <53322305+nytmyr@users.noreply.github.com> Date: Mon, 28 Apr 2025 16:46:12 -0500 Subject: [PATCH] [Bots] Prevent non-taunters from potentially fleeing mob on TargetReflection (#4859) - Casters could endlessly flee a mob if they had target reflection and were too close. - Prevents all bots that aren't taunting from adjusting if they're too close and have target reflection. This is safer than limiting it to just casters and ranged bots to prevent situations where melee bots might not be able to outrun the mob to get to their melee range and continually flee. - WE'LL GET THIS RIGHT EVENTUALLY /sigh --- zone/bot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index af6723181..294e49963 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -12009,7 +12009,7 @@ bool Bot::DoCombatPositioning(const CombatPositioningInput& input) } else if (IsTaunting() || HasTargetReflection()) { // Taunting/Aggro adjustments adjustment_needed = - is_too_close || + (IsTaunting() && is_too_close) || los_adjust || (is_melee && !input.front_mob);