Core/SpellScripts: Add BeforeCast, OnCast and AfterCast hooks to SpellScripts.

This commit is contained in:
QAston
2011-12-31 13:11:12 +01:00
parent b65722a859
commit afc18461d7
6 changed files with 138 additions and 13 deletions
+1 -1
View File
@@ -2035,7 +2035,6 @@ void Aura::_DeleteRemovedApplications()
void Aura::LoadScripts()
{
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Aura::LoadScripts");
sScriptMgr->CreateAuraScripts(m_spellInfo->Id, m_loadedScripts);
for (std::list<AuraScript*>::iterator itr = m_loadedScripts.begin(); itr != m_loadedScripts.end() ;)
{
@@ -2046,6 +2045,7 @@ void Aura::LoadScripts()
m_loadedScripts.erase(bitr);
continue;
}
sLog->outDebug(LOG_FILTER_SPELLS_AURAS, "Aura::LoadScripts: Script `%s` for aura `%u` is loaded now", (*itr)->_GetScriptName()->c_str(), m_spellInfo->Id);
(*itr)->Register();
++itr;
}