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:40:50 +02:00
parent 157dff1ed3
commit 156d491c27
3 changed files with 16 additions and 0 deletions
+3
View File
@@ -320,6 +320,9 @@ class SpellScript : public _SpellScript
// Creates item. Calls Spell::DoCreateItem method.
void CreateItem(uint32 effIndex, uint32 itemId);
// Returns SpellInfo from the spell that triggered the current one
SpellInfo const* GetTriggeringSpell();
// finishes spellcast prematurely with selected error message
void FinishCast(SpellCastResult result);