diff options
-rw-r--r-- | src/game/PetAI.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp index bf368001cc1..18bde7dde2e 100644 --- a/src/game/PetAI.cpp +++ b/src/game/PetAI.cpp @@ -272,8 +272,11 @@ void PetAI::KilledUnit(Unit *victim) return; // Clear target just in case. May help problem where health / focus / mana - // regen gets stuck. Also resets attack command. - _stopAttack(); + // regen gets stuck. Also resets attack command. + // Can't use _stopAttack() because that activates movement handlers and ignores + // next target selection + me->AttackStop(); + me->GetCharmInfo()->SetIsCommandAttack(false); Unit *nextTarget = SelectNextTarget(); |