*Fix pets not selecting next target bug, by MrSmite

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-15 13:43:09 -07:00
parent d926d567b5
commit 0174dd5aff
+5 -2
View File
@@ -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();