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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user