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:
1 parent
b345dc5061
commit
cac4cfda42
3 files changed
+20
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user