From 355d54c6faa43ae80288bd0ab8693a4f46402f31 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 19 Jan 2021 13:24:27 -0500 Subject: [PATCH] Core/SAI: allow to pause/resume waypoint for non-escorting NPCs Port From (https://github.com/TrinityCore/TrinityCore/commit/56dca10f1b7aa02e2869176ae93b5483406dea09) --- Source/Game/AI/SmartScripts/SmartAI.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Source/Game/AI/SmartScripts/SmartAI.cs b/Source/Game/AI/SmartScripts/SmartAI.cs index bf773c7e5..fe2a2fb0f 100644 --- a/Source/Game/AI/SmartScripts/SmartAI.cs +++ b/Source/Game/AI/SmartScripts/SmartAI.cs @@ -133,9 +133,6 @@ namespace Game.AI public void PausePath(uint delay, bool forced) { - if (!HasEscortState(SmartEscortState.Escorting)) - return; - if (HasEscortState(SmartEscortState.Paused)) { Log.outError(LogFilter.Server, $"SmartAI.PausePath: Creature entry {me.GetEntry()} wanted to pause waypoint movement while already paused, ignoring."); @@ -160,9 +157,6 @@ namespace Game.AI public void StopPath(uint despawnTime = 0, uint quest = 0, bool fail = false) { - if (!HasEscortState(SmartEscortState.Escorting)) - return; - if (quest != 0) mEscortQuestID = quest; @@ -275,9 +269,6 @@ namespace Game.AI void UpdatePath(uint diff) { - if (!HasEscortState(SmartEscortState.Escorting)) - return; - if (_escortInvokerCheckTimer < diff) { if (!IsEscortInvokerInRange())