diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-01-22 17:21:24 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-01-22 17:21:24 +0100 |
commit | 5adf9c5d305bb1c7e2f282ce3e5a4cf0fbd5592d (patch) | |
tree | cf388f7632be2728150ea6d02667c016849bcddd /src/server/game/Spells/SpellScript.cpp | |
parent | c2690f748bcc42a1818b90336e81fb586588dd1e (diff) |
Scripts/Spells: Moved all special target filtering cases to scripts
Diffstat (limited to 'src/server/game/Spells/SpellScript.cpp')
-rwxr-xr-x | src/server/game/Spells/SpellScript.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp index 30674b4f69d..52a06bd1f2e 100755 --- a/src/server/game/Spells/SpellScript.cpp +++ b/src/server/game/Spells/SpellScript.cpp @@ -439,6 +439,12 @@ void SpellScript::CreateItem(uint32 effIndex, uint32 itemId) m_spell->DoCreateItem(effIndex, itemId); } +void SpellScript::FinishCast(SpellCastResult result) +{ + m_spell->SendCastResult(result); + m_spell->finish(result == SPELL_CAST_OK); +} + bool AuraScript::_Validate(SpellEntry const * entry) { for (std::list<EffectApplyHandler>::iterator itr = OnEffectApply.begin(); itr != OnEffectApply.end(); ++itr) |