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
+5 -5
View File
@@ -2343,9 +2343,9 @@ namespace Game.Spells
if (!(m_spellInfo.IsNextMeleeSwingSpell() || IsAutoRepeat()))
{
if (m_targets.GetObjectTarget() && m_caster != m_targets.GetObjectTarget())
m_caster.ToCreature().FocusTarget(this, m_targets.GetObjectTarget());
m_caster.ToCreature().SetSpellFocusTarget(this, m_targets.GetObjectTarget());
else if (m_spellInfo.HasAttribute(SpellAttr5.DontTurnDuringCast))
m_caster.ToCreature().FocusTarget(this, null);
m_caster.ToCreature().SetSpellFocusTarget(this, null);
}
}
@@ -2693,7 +2693,7 @@ namespace Game.Spells
{
Creature creatureCaster = m_caster.ToCreature();
if (creatureCaster != null)
creatureCaster.ReleaseFocus(this);
creatureCaster.ReleaseSpellFocus(this);
}
// Okay, everything is prepared. Now we need to distinguish between immediate and evented delayed spells
@@ -3161,7 +3161,7 @@ namespace Game.Spells
Creature creatureCaster = unitCaster.ToCreature();
if (creatureCaster != null)
creatureCaster.ReleaseFocus(this);
creatureCaster.ReleaseSpellFocus(this);
if (!ok)
return;
@@ -3999,7 +3999,7 @@ namespace Game.Spells
Creature creatureCaster = unitCaster.ToCreature();
if (creatureCaster != null)
if (!creatureCaster.HandleSpellFocus(this))
creatureCaster.FocusTarget(this, Global.ObjAccessor.GetWorldObject(creatureCaster, target.TargetGUID));
creatureCaster.SetSpellFocusTarget(this, Global.ObjAccessor.GetWorldObject(creatureCaster, target.TargetGUID));
}
}
}