From 1bbab51284d7517a2505eb15004779749726746f Mon Sep 17 00:00:00 2001 From: Lopin Date: Fri, 19 Aug 2011 14:52:11 +0200 Subject: Core/Pets: When pet attacks, owner should be in combat as well. Closes #2601 --- src/server/game/AI/CoreAI/PetAI.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index 21cc19d5831..0d8841dafd3 100755 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -307,6 +307,9 @@ void PetAI::AttackStart(Unit* target) targetHasCC = _CheckTargetCC(target); + if (Unit* owner = me->GetOwner()) + owner->SetInCombatWith(target); + DoAttack(target, true); } -- cgit v1.2.3