Core/Pets: When pet attacks, owner should be in combat as well. Closes #2601

This commit is contained in:
Lopin
2011-08-19 14:52:11 +02:00
parent ce7cc421f5
commit 1bbab51284
+3
View File
@@ -307,6 +307,9 @@ void PetAI::AttackStart(Unit* target)
targetHasCC = _CheckTargetCC(target); targetHasCC = _CheckTargetCC(target);
if (Unit* owner = me->GetOwner())
owner->SetInCombatWith(target);
DoAttack(target, true); DoAttack(target, true);
} }