From d8669a2ec18e20f2a0b05c5cb99616c055897350 Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Sat, 23 Dec 2023 08:26:27 +0200 Subject: [PATCH] No override needed. --- src/game/AI/PetEventAI.cpp | 6 ------ src/game/AI/PetEventAI.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/game/AI/PetEventAI.cpp b/src/game/AI/PetEventAI.cpp index a24e13f706a..4f4e83bf12a 100644 --- a/src/game/AI/PetEventAI.cpp +++ b/src/game/AI/PetEventAI.cpp @@ -116,12 +116,6 @@ void PetEventAI::AttackStart(Unit* pWho) } } -void PetEventAI::AttackedBy(Unit* pAttacker) -{ - if (!m_creature->GetVictim()) - AttackStart(pAttacker); -} - Unit* PetEventAI::FindTargetForAttack() const { if (Unit* pTaunter = m_creature->GetTauntTarget()) diff --git a/src/game/AI/PetEventAI.h b/src/game/AI/PetEventAI.h index 4a7745bae8d..2b041933ebd 100644 --- a/src/game/AI/PetEventAI.h +++ b/src/game/AI/PetEventAI.h @@ -35,8 +35,6 @@ class PetEventAI : public CreatureEventAI void AttackStart(Unit* /*pWho*/) override; - void AttackedBy(Unit* /*pAttacker*/) override; - void UpdateAI(uint32 const uiDiff) override; virtual void OwnerAttackedBy(Unit* /*attacker*/) override;