AI/CreatureAI: Properly update Victim even while spell focusing

This commit is contained in:
Treeston
2020-10-13 23:44:37 +02:00
committed by Ovahlord
parent a6a1c619f5
commit c34533432a

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;