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
+2 -2
View File
@@ -327,7 +327,7 @@ namespace Game
Unit unit_target2 = spell.m_targets.GetUnitTarget();
if (unit_target)
{
if (!pet.IsFocusing())
if (!pet.HandleSpellFocus())
pet.SetInFront(unit_target);
Player player = unit_target.ToPlayer();
if (player)
@@ -335,7 +335,7 @@ namespace Game
}
else if (unit_target2)
{
if (!pet.IsFocusing())
if (!pet.HandleSpellFocus())
pet.SetInFront(unit_target2);
Player player = unit_target2.ToPlayer();
if (player)