From 5c572530909e7aae910cfed6c2d9c39ce94a996f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 1 Jan 2022 17:56:20 -0500 Subject: [PATCH] Core/AI: PetAI now properly signals engagement state. Port From (https://github.com/TrinityCore/TrinityCore/commit/1759502f5d4cc89ab80e9cfb93c804e096a3ad93) --- Source/Game/AI/CoreAI/PetAI.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Game/AI/CoreAI/PetAI.cs b/Source/Game/AI/CoreAI/PetAI.cs index 71e384215..8b72950b9 100644 --- a/Source/Game/AI/CoreAI/PetAI.cs +++ b/Source/Game/AI/CoreAI/PetAI.cs @@ -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) { }