Core/Misc: Rename Unit::AttackedTarget to Unit::AtTargetAttacked to match naming scheme for these notifiers

Port From (https://github.com/TrinityCore/TrinityCore/commit/dabdad3b47d7438327d3ee861eddd68e9bea68b1)
This commit is contained in:
hondacrx
2021-12-23 20:02:14 -05:00
parent 8694a2ae24
commit 749b77d060
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -506,7 +506,7 @@ namespace Game.Entities
if ((attType == WeaponAttackType.BaseAttack || attType == WeaponAttackType.OffAttack) && !IsWithinLOSInMap(victim)) if ((attType == WeaponAttackType.BaseAttack || attType == WeaponAttackType.OffAttack) && !IsWithinLOSInMap(victim))
return; return;
AttackedTarget(victim, true); AtTargetAttacked(victim, true);
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags.Attacking); RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags.Attacking);
// ignore ranged case // ignore ranged case
@@ -643,7 +643,7 @@ namespace Game.Entities
SendCombatLogMessage(packet); SendCombatLogMessage(packet);
} }
public void AttackedTarget(Unit target, bool canInitialAggro = true) public void AtTargetAttacked(Unit target, bool canInitialAggro = true)
{ {
if (!target.IsEngaged() && !canInitialAggro) if (!target.IsEngaged() && !canInitialAggro)
return; return;
+1 -1
View File
@@ -8039,7 +8039,7 @@ namespace Game.Spells
{ {
Unit unitCaster = spell.GetCaster().ToUnit(); Unit unitCaster = spell.GetCaster().ToUnit();
if (unitCaster != null) if (unitCaster != null)
unitCaster.AttackedTarget(unit, spell.m_spellInfo.HasInitialAggro()); unitCaster.AtTargetAttacked(unit, spell.m_spellInfo.HasInitialAggro());
if (!unit.IsStandState()) if (!unit.IsStandState())
unit.SetStandState(UnitStandStateType.Stand); unit.SetStandState(UnitStandStateType.Stand);