Core/Pets: When pet attacks, owner should be in combat as well. Closes #2601
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user