diff options
author | Lopin <davca.hr@seznam.cz> | 2011-08-19 14:52:11 +0200 |
---|---|---|
committer | Lopin <davca.hr@seznam.cz> | 2011-08-19 14:52:11 +0200 |
commit | 1bbab51284d7517a2505eb15004779749726746f (patch) | |
tree | 908057a3e508d79c24da53d72180bdac5eba78b8 /src | |
parent | ce7cc421f505f72ba477c4cda003c64f1efa9d67 (diff) |
Core/Pets: When pet attacks, owner should be in combat as well. Closes #2601
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/AI/CoreAI/PetAI.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |