AI/CreatureAI: Properly update Victim even while spell focusing

(cherry picked from commit 684910a230)
This commit is contained in:
Treeston
2020-10-13 23:44:37 +02:00
committed by Shauren
parent ab189bfc42
commit 1bbf61ef02

View File

@@ -257,7 +257,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;