From 622736286f003618abb52d35d89c63d0bb133d54 Mon Sep 17 00:00:00 2001 From: ccrs Date: Sat, 12 Aug 2017 17:57:13 +0200 Subject: [PATCH] Core/SmatAI: correct MoveInLineOfSight mistake introduced in 15f2706acaa that was masqueraded by other checks in combat start, till recent related commits --- src/server/game/AI/SmartScripts/SmartAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index be65d9d4d9..15f5b06d55 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -524,7 +524,7 @@ void SmartAI::MoveInLineOfSight(Unit* who) if (!IsAIControlled()) return; - if (AssistPlayerInCombatAgainst(who)) + if (HasEscortState(SMART_ESCORT_ESCORTING) && AssistPlayerInCombatAgainst(who)) return; CreatureAI::MoveInLineOfSight(who);