aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2017-08-12 17:57:13 +0200
committerccrs <ccrs@users.noreply.github.com>2017-08-12 17:57:13 +0200
commitd117a0e4d4aa29960c04d09ba90d2d0798a5c1b6 (patch)
tree32b606e89678529b37893112a9fd962c3d8094ce /src/server/game/AI/SmartScripts
parentcd4775420a4894012616d54467eb3827430245b5 (diff)
Core/SmatAI: correct MoveInLineOfSight
mistake introduced in 15f2706acaa that was masqueraded by other checks in combat start, till recent related commits
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-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 307941d3e5c..b886f0d98ad 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);