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;