Core/PetAI: Pet's owner should NOT enter combat when the pet attacks/enters combat

This commit is contained in:
Trisjdc
2014-05-18 11:00:48 +01:00
parent 32386be8e7
commit 8aee9dd948

View File

@@ -459,9 +459,6 @@ void PetAI::DoAttack(Unit* target, bool chase)
if (me->Attack(target, true))
{
if (Unit* owner = me->GetOwner())
owner->SetInCombatWith(target);
// Play sound to let the player know the pet is attacking something it picked on its own
if (me->HasReactState(REACT_AGGRESSIVE) && !me->GetCharmInfo()->IsCommandAttack())
me->SendPetAIReaction(me->GetGUID());