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:
1 parent
e07f4f9dc2
commit
e54f8ca4f7
3 files changed
+27
-21
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user