aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-05-02 17:43:41 +0200
committerQAston <none@none>2009-05-02 17:43:41 +0200
commit8a05a5b91cf884c87c9ada5b0bd0ab872a3167e0 (patch)
tree17e34b1e90476bd1fbf20fc93c33f01d236f07f4 /src/game/SpellEffects.cpp
parenta1f73a8a0801f217df5fe56cbe7051cd029b5f77 (diff)
Handle spell effects in order from dbcs
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp23
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];