Core/AI: PetAI now properly signals engagement state.

Port From (https://github.com/TrinityCore/TrinityCore/commit/1759502f5d4cc89ab80e9cfb93c804e096a3ad93)
This commit is contained in:
hondacrx
2022-01-01 17:56:20 -05:00
parent 86f7a08870
commit 5c57253090
+10
View File
@@ -633,6 +633,16 @@ namespace Game.AI
AttackStart(attacker);
}
public override void JustEnteredCombat(Unit who)
{
EngagementStart(who);
}
public override void JustExitedCombat()
{
EngagementOver();
}
// The following aren't used by the PetAI but need to be defined to override
// default CreatureAI functions which interfere with the PetAI
public override void MoveInLineOfSight(Unit who) { }