AI/CreatureAI: Properly update Victim even while spell focusing
Port From (https://github.com/TrinityCore/TrinityCore/commit/1bbf61ef02061bfbc80e5293b4d4de0ad4560d36)
This commit is contained in:
@@ -254,9 +254,8 @@ namespace Game.AI
|
||||
if (!me.HasReactState(ReactStates.Passive))
|
||||
{
|
||||
Unit victim = me.SelectVictim();
|
||||
if (victim != null)
|
||||
if (!me.HasSpellFocus() && victim != me.GetVictim())
|
||||
AttackStart(victim);
|
||||
if (victim != null && victim != me.GetVictim())
|
||||
AttackStart(victim);
|
||||
|
||||
return me.GetVictim() != null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user