Core/Entities: Fixed an issue where creatures would not properly assist formation members in certain scenarios.
Port From (https://github.com/TrinityCore/TrinityCore/commit/00b9c23e28dc19a3a9f45d1d5b86d203f55b2a7e)
This commit is contained in:
@@ -306,6 +306,10 @@ namespace Game.Combat
|
||||
CreatureAI ownerAI = cOwner.GetAI();
|
||||
if (ownerAI != null)
|
||||
ownerAI.JustEngagedWith(target);
|
||||
|
||||
CreatureGroup formation = cOwner.GetFormation();
|
||||
if (formation != null)
|
||||
formation.MemberEngagingTarget(cOwner, target);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user