From fde411266da636d659cb052294309fa59b743e28 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 3 Nov 2021 11:54:05 -0400 Subject: [PATCH] Core/EscortAI: initialize run state before filling waypoints Port From (https://github.com/TrinityCore/TrinityCore/commit/b606c22dfdf204f8b49bce78304ed1ad1eec9029) --- Source/Game/AI/ScriptedAI/ScriptedEscortAI.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Game/AI/ScriptedAI/ScriptedEscortAI.cs b/Source/Game/AI/ScriptedAI/ScriptedEscortAI.cs index ab8c9c10e..4fb4e11df 100644 --- a/Source/Game/AI/ScriptedAI/ScriptedEscortAI.cs +++ b/Source/Game/AI/ScriptedAI/ScriptedEscortAI.cs @@ -403,6 +403,8 @@ namespace Game.AI return; } + _running = run; + if (!_manualPath && resetWaypoints) FillPointMovementListForCreature(); @@ -414,7 +416,6 @@ namespace Game.AI // set variables _activeAttacker = isActiveAttacker; - _running = run; _playerGUID = playerGUID; _escortQuest = quest; _instantRespawn = instantRespawn;