Core/SAI: do not allow the waypoint pause timer to update while in combat.

Port From (https://github.com/TrinityCore/TrinityCore/commit/381333690b33c9148e994d9f68e7d12f1d5dc31d)
This commit is contained in:
hondacrx
2022-02-27 13:58:30 -05:00
parent 1b28a8260c
commit aff47f6501
+4 -4
View File
@@ -1001,13 +1001,13 @@ namespace Game.AI
// handle pause
if (HasEscortState(SmartEscortState.Paused) && (_waypointReached || _waypointPauseForced))
{
if (_waypointPauseTimer < diff)
if (!me.IsInCombat() && !HasEscortState(SmartEscortState.Returning))
{
if (!me.IsInCombat() && !HasEscortState(SmartEscortState.Returning))
if (_waypointPauseTimer <= diff)
ResumePath();
else
_waypointPauseTimer -= diff;
}
else
_waypointPauseTimer -= diff;
}
else if (_waypointPathEnded) // end path
{