aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2017-08-12 17:57:13 +0200
committerShauren <shauren.trinity@gmail.com>2020-08-23 00:49:36 +0200
commite10018029db1f6909d8ae089b2fcc27e7d8b8f7a (patch)
treefda23b07e36940ba95a336b407eed9e23fac0442
parent0a133e77d61fc6bafad7b60b74604d5da648ece9 (diff)
Core/SmatAI: correct MoveInLineOfSight
mistake introduced in 15f2706acaa that was masqueraded by other checks in combat start, till recent related commits (cherry picked from commit d117a0e4d4aa29960c04d09ba90d2d0798a5c1b6)
-rw-r--r--src/server/game/AI/SmartScripts/SmartAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp
index c9efc4b5637..95f4c680197 100644
--- a/src/server/game/AI/SmartScripts/SmartAI.cpp
+++ b/src/server/game/AI/SmartScripts/SmartAI.cpp
@@ -488,7 +488,7 @@ void SmartAI::MoveInLineOfSight(Unit* who)
if (!IsAIControlled())
return;
- if (AssistPlayerInCombatAgainst(who))
+ if (HasEscortState(SMART_ESCORT_ESCORTING) && AssistPlayerInCombatAgainst(who))
return;
CreatureAI::MoveInLineOfSight(who);