mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
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:
@@ -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