aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorShauren <none@none>2010-07-24 21:51:25 +0200
committerShauren <none@none>2010-07-24 21:51:25 +0200
commit32ceff1267fc74bb72cf421e0e016d8ec5b51c39 (patch)
treeeb0bab86c9d2b6e37ac0d59498915008d5d43167 /src/server/game/Spells/SpellEffects.cpp
parent47db12b759b00ee2177e5b5ff0103d0d9e513a64 (diff)
Modified spell_scripts table, it is now possible to add different scripts for each spell effect
Allow SPELL_EFFECT_DUMMY spells to use spell_scripts --HG-- branch : trunk
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 2b1acc55b5e..0f71f29906e 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -2218,6 +2218,10 @@ void Spell::EffectDummy(uint32 i)
return;
}
+ // normal DB scripted effect
+ sLog.outDebug("Spell ScriptStart spellid %u in EffectDummy(%u)", m_spellInfo->Id, i);
+ m_caster->GetMap()->ScriptsStart(sSpellScripts, MAKE_PAIR32(m_spellInfo->Id,i), m_caster, unitTarget);
+
// Script based implementation. Must be used only for not good for implementation in core spell effects
// So called only for not proccessed cases
if (gameObjTarget)
@@ -6478,8 +6482,8 @@ void Spell::EffectScriptEffect(uint32 effIndex)
}
// normal DB scripted effect
- sLog.outDebug("Spell ScriptStart spellid %u in EffectScriptEffect ", m_spellInfo->Id);
- m_caster->GetMap()->ScriptsStart(sSpellScripts, m_spellInfo->Id, m_caster, unitTarget);
+ sLog.outDebug("Spell ScriptStart spellid %u in EffectScriptEffect(%u)", m_spellInfo->Id, effIndex);
+ m_caster->GetMap()->ScriptsStart(sSpellScripts, MAKE_PAIR32(m_spellInfo->Id,effIndex), m_caster, unitTarget);
}
void Spell::EffectSanctuary(uint32 /*i*/)