From 0174dd5aff75b688a566d63af5cd3a4032764965 Mon Sep 17 00:00:00 2001 From: maximius Date: Tue, 15 Sep 2009 13:43:09 -0700 Subject: [PATCH] *Fix pets not selecting next target bug, by MrSmite --HG-- branch : trunk --- src/game/PetAI.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp index bf368001cc..18bde7dde2 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();