Scripts/Spells: Moved all special target filtering cases to scripts

This commit is contained in:
Shauren
2011-01-22 17:21:24 +01:00
parent c2690f748b
commit 5adf9c5d30
15 changed files with 957 additions and 671 deletions

View File

@@ -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)