[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
This commit is contained in:
nytmyr 2025-04-28 16:46:12 -05:00 committed by GitHub
parent 5ae87b40e2
commit 7e7fb7b758
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);