Core/SAI: Fix SMART_ACTION_WP_PAUSE with 0 delay pausing the path only for 1 world loop update

Port From (https://github.com/TrinityCore/TrinityCore/commit/60519e947f634f12aa93a1871d53e012ed9e57d2)
This commit is contained in:
hondacrx
2022-05-24 10:04:06 -04:00
parent 17feb111df
commit a4d5b9eb6f
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -991,7 +991,8 @@ namespace Game.AI
// handle pause
if (HasEscortState(SmartEscortState.Paused) && (_waypointReached || _waypointPauseForced))
{
if (!me.IsInCombat() && !HasEscortState(SmartEscortState.Returning))
// Resume only if there was a pause timer set
if (_waypointPauseTimer != 0 && !me.IsInCombat() && !HasEscortState(SmartEscortState.Returning))
{
if (_waypointPauseTimer <= diff)
ResumePath();