Core/Unit: Spell focusing now no longer nonsensical. HasSpellFocus always const. Error logs for various stuff.
Port From (https://github.com/TrinityCore/TrinityCore/commit/14c38a1c529e634b068a67b3e7475ddcf599086b)
This commit is contained in:
@@ -327,7 +327,7 @@ namespace Game
|
||||
Unit unit_target2 = spell.m_targets.GetUnitTarget();
|
||||
if (unit_target)
|
||||
{
|
||||
if (!pet.HandleSpellFocus())
|
||||
if (!pet.HasSpellFocus())
|
||||
pet.SetInFront(unit_target);
|
||||
Player player = unit_target.ToPlayer();
|
||||
if (player)
|
||||
@@ -335,7 +335,7 @@ namespace Game
|
||||
}
|
||||
else if (unit_target2)
|
||||
{
|
||||
if (!pet.HandleSpellFocus())
|
||||
if (!pet.HasSpellFocus())
|
||||
pet.SetInFront(unit_target2);
|
||||
Player player = unit_target2.ToPlayer();
|
||||
if (player)
|
||||
|
||||
Reference in New Issue
Block a user