Skip to content

Commit

Permalink
Actually this part is not needed anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Dec 23, 2023
1 parent 9c30518 commit 8a219fb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/game/AI/PetEventAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,6 @@ void PetEventAI::AttackedBy(Unit* pAttacker)
{
if (!m_creature->GetVictim())
AttackStart(pAttacker);

if (Creature* pOwner = ToCreature(m_creature->GetCharmerOrOwner()))
{
if (pOwner->IsAlive() && pAttacker->IsTargetableBy(pOwner))
{
pOwner->AddThreat(pAttacker);
pOwner->SetInCombatWith(pAttacker);
}
}
}

Unit* PetEventAI::FindTargetForAttack() const
Expand Down

0 comments on commit 8a219fb

Please sign in to comment.