AI/CreatureAI: Properly update Victim even while spell focusing

This commit is contained in:
Treeston
2020-10-13 23:44:37 +02:00
parent 3c0766df54
commit 684910a230

View File

@@ -251,7 +251,7 @@ bool CreatureAI::UpdateVictim()
if (!me->HasReactState(REACT_PASSIVE))
{
if (Unit* victim = me->SelectVictim())
if (!me->HasSpellFocus() && victim != me->GetVictim())
if (victim != me->GetVictim())
AttackStart(victim);
return me->GetVictim() != nullptr;