mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Core/SmatAI: correct MoveInLineOfSight
mistake introduced in15f2706acathat was masqueraded by other checks in combat start, till recent related commits (cherry picked from commitd117a0e4d4)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user