From c5f84e953fb9f70fda03fb41fda2b237373fed7b Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 24 May 2022 13:06:13 -0400 Subject: [PATCH] AI/CreatureAI: Properly update Victim even while spell focusing Port From (https://github.com/TrinityCore/TrinityCore/commit/1bbf61ef02061bfbc80e5293b4d4de0ad4560d36) --- Source/Game/AI/CoreAI/CreatureAI.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Game/AI/CoreAI/CreatureAI.cs b/Source/Game/AI/CoreAI/CreatureAI.cs index 661c408c9..d4637a2fb 100644 --- a/Source/Game/AI/CoreAI/CreatureAI.cs +++ b/Source/Game/AI/CoreAI/CreatureAI.cs @@ -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; }