AI/CreatureAI: Properly update Victim even while spell focusing

This commit is contained in:
Treeston authored and Ovahlord committed 2020-10-16 15:45:39 +02:00
1 parent a6a1c619f5
commit c34533432a
1 file changed
+1 -1
+1 -1
View File
@@ -243,7 +243,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;