Core/ScriptSystem: Add missing script call preparation for SpellScripts - fixes issues with core false alarms after recent changes

--HG--
branch : trunk
This commit is contained in:
QAston
2010-10-05 08:17:10 +02:00
parent b345dc5061
commit cac4cfda42
3 changed files with 20 additions and 0 deletions

View File

@@ -195,6 +195,16 @@ void SpellScript::_InitHit()
m_hitPreventDefaultEffectMask = 0;
}
void SpellScript::_PrepareScriptCall(SpellScriptHookType hookType)
{
m_currentScriptState = hookType;
}
void SpellScript::_FinishScriptCall()
{
m_currentScriptState = SPELL_SCRIPT_STATE_NONE;
}
Unit * SpellScript::GetCaster()
{
return m_spell->GetCaster();