Core/SAI: allow to pause/resume waypoint for non-escorting NPCs

Port From (https://github.com/TrinityCore/TrinityCore/commit/56dca10f1b7aa02e2869176ae93b5483406dea09)
This commit is contained in:
hondacrx
2021-01-19 13:24:27 -05:00
parent 6a0a34951a
commit 355d54c6fa
-9
View File
@@ -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())