Core/Spells: Add GetTriggeringSpell() method to SpellScript and use it to properly filter server side spell 18350's script.

This commit is contained in:
Machiavelli
2011-08-06 19:39:45 +02:00
parent 157dff1ed3
commit 156d491c27
3 changed files with 16 additions and 0 deletions
+5
View File
@@ -455,6 +455,11 @@ void SpellScript::CreateItem(uint32 effIndex, uint32 itemId)
m_spell->DoCreateItem(effIndex, itemId);
}
SpellInfo const* SpellScript::GetTriggeringSpell()
{
return m_spell->m_triggeredByAuraSpell;
}
void SpellScript::FinishCast(SpellCastResult result)
{
m_spell->SendCastResult(result);