Core/AI: PetAI now properly signals engagement state. Closes #23640.

This commit is contained in:
Treeston
2019-07-28 22:04:13 +02:00
parent eb0336468c
commit c3dd67dfbb

View File

@@ -45,6 +45,8 @@ class TC_GAME_API PetAI : public CreatureAI
void OwnerAttacked(Unit* target) override;
void DamageTaken(Unit* attacker, uint32& /*damage*/) override { AttackStart(attacker); }
void ReceiveEmote(Player* player, uint32 textEmote) override;
void JustEnteredCombat(Unit* who) override { EngagementStart(who); }
void JustExitedCombat() override { EngagementOver(); }
// The following aren't used by the PetAI but need to be defined to override
// default CreatureAI functions which interfere with the PetAI