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

(cherry picked from commit 632a300dd2)
This commit is contained in:
Treeston
2019-06-23 00:32:59 +02:00
committed by Shauren
parent 35e55f1089
commit dabdad3b47
3 changed files with 26 additions and 26 deletions

View File

@@ -2620,7 +2620,7 @@ void Spell::TargetInfo::DoDamageAndTriggers(Spell* spell)
if (MissCondition != SPELL_MISS_EVADE && _spellHitTarget && !spell->m_caster->IsFriendlyTo(unit) && (!spell->IsPositive() || spell->m_spellInfo->HasEffect(SPELL_EFFECT_DISPEL)))
{
if (Unit* unitCaster = spell->m_caster->ToUnit())
unitCaster->AttackedTarget(unit, spell->m_spellInfo->HasInitialAggro());
unitCaster->AtTargetAttacked(unit, spell->m_spellInfo->HasInitialAggro());
if (!unit->IsStandState())
unit->SetStandState(UNIT_STAND_STATE_STAND);