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

# Conflicts:
#	src/server/game/Entities/Unit/Unit.cpp
#	src/server/game/Spells/Spell.cpp
This commit is contained in:
Treeston authored and Ovahlord committed 2020-07-22 18:07:24 +02:00
1 parent e07f4f9dc2
commit e54f8ca4f7
3 files changed
+27 -21

No files matched your search

+2 -1
View File
@@ -2700,7 +2700,8 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target)
// spellHitTarget can be null if spell is missed in DoSpellHitOnUnit
if (missInfo != SPELL_MISS_EVADE && spellHitTarget && !m_caster->IsFriendlyTo(unit) && (!m_spellInfo->IsPositive() || m_spellInfo->HasEffect(SPELL_EFFECT_DISPEL)))
{
m_caster->AttackedTarget(unit, m_spellInfo->HasInitialAggro());
if (Unit* unitCaster = spell->m_caster->ToUnit())
unitCaster->AtTargetAttacked(unit, spell->m_spellInfo->HasInitialAggro());
if (!unit->IsStandState())
unit->SetStandState(UNIT_STAND_STATE_STAND);