diff options
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 0eab6a025fa..f749da89711 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -2329,7 +2329,16 @@ void Spell::EffectTeleportUnits(uint32 i) void Spell::EffectApplyAura(uint32 i) { - return; //handled elsewhere + if (m_spellAura) + if (AuraEffect * AurEff = m_spellAura->GetPartAura(i)) + unitTarget->HandleAuraEffect(AurEff, true); +} + +void Spell::EffectApplyAreaAura(uint32 i) +{ + if (m_spellAura) + if (AuraEffect * AurEff = m_spellAura->GetPartAura(i)) + unitTarget->HandleAuraEffect(AurEff, true); } void Spell::EffectUnlearnSpecialization( uint32 i ) @@ -3183,18 +3192,6 @@ void Spell::EffectProficiency(uint32 /*i*/) } } -void Spell::EffectApplyAreaAura(uint32 i) -{ - return; -/* if(!unitTarget) - return; - if(!unitTarget->isAlive()) - return; - - AreaAura* Aur = new AreaAura(m_spellInfo, i, &damage, unitTarget, m_caster, m_CastItem); - unitTarget->AddAura(Aur);*/ -} - void Spell::EffectSummonType(uint32 i) { uint32 entry = m_spellInfo->EffectMiscValue[i]; |