Core/Unit: rename more methods

Port From (https://github.com/TrinityCore/TrinityCore/commit/a58881d6dac1975b77abf361c5dc5ffcd755d2be)
This commit is contained in:
hondacrx
2022-01-02 19:26:31 -05:00
parent 6ad0b6f159
commit a2a2eb3581
2 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -1819,7 +1819,7 @@ namespace Game.Entities
SaveRespawnTime();
ReleaseFocus(null, false); // remove spellcast focus
ReleaseSpellFocus(null, false); // remove spellcast focus
DoNotReacquireTarget(); // cancel delayed re-target
SetTarget(ObjectGuid.Empty); // drop target - dead mobs shouldn't ever target things
@@ -2925,7 +2925,7 @@ namespace Game.Entities
SetUpdateFieldValue(m_values.ModifyValue(m_unitData).ModifyValue(m_unitData.Target), guid);
}
public void FocusTarget(Spell focusSpell, WorldObject target)
public void SetSpellFocusTarget(Spell focusSpell, WorldObject target)
{
// already focused
if (_focusSpell != null)
@@ -3005,7 +3005,7 @@ namespace Game.Entities
{
if (!IsAlive()) // dead creatures cannot focus
{
ReleaseFocus(null, false);
ReleaseSpellFocus(null, false);
return false;
}
@@ -3026,7 +3026,7 @@ namespace Game.Entities
return true;
}
public void ReleaseFocus(Spell focusSpell = null, bool withDelay = true)
public void ReleaseSpellFocus(Spell focusSpell = null, bool withDelay = true)
{
if (_focusSpell == null)
return;