Core/Unit: rename IsFocusing method

Port From (https://github.com/TrinityCore/TrinityCore/commit/be4ed9152c1a9c3dab9949eb36d867b763603f60)
This commit is contained in:
hondacrx
2022-01-02 19:25:23 -05:00
parent 32a3480c0f
commit 6ad0b6f159
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ namespace Game.AI
{
Unit victim = me.SelectVictim();
if (victim != null)
if (!me.IsFocusing(null, true) && victim != me.GetVictim())
if (!me.HandleSpellFocus(null, true) && victim != me.GetVictim())
AttackStart(victim);
return me.GetVictim() != null;