Core/AI: prevent launching a new MoveChase if victim didn't change

Thanks ccrs for feedback :P
This commit is contained in:
ariel- authored and Aokromes committed 2017-04-25 13:30:44 +02:00
1 parent efee8fcdc1
commit 2e27a1f64e
1 file changed
+1 -1
+1 -1
View File
@@ -240,7 +240,7 @@ bool CreatureAI::UpdateVictim()
if (!me->HasReactState(REACT_PASSIVE))
{
if (Unit* victim = me->SelectVictim())
if (!me->IsFocusing(nullptr, true))
if (!me->IsFocusing(nullptr, true) && victim != me->GetVictim())
AttackStart(victim);
return me->GetVictim() != nullptr;