aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellScript.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2010-10-05 08:17:10 +0200
committerQAston <none@none>2010-10-05 08:17:10 +0200
commitcac4cfda42f6d392fa6232bdb211334d5b5638fa (patch)
tree3ad10e7a2f3bd613e59d60e89da8acef60d0d805 /src/server/game/Spells/SpellScript.cpp
parentb345dc5061980281f25f9f2159ea441a9b568786 (diff)
Core/ScriptSystem: Add missing script call preparation for SpellScripts - fixes issues with core false alarms after recent changes
--HG-- branch : trunk
Diffstat (limited to 'src/server/game/Spells/SpellScript.cpp')
-rw-r--r--src/server/game/Spells/SpellScript.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp
index 269ec503c3a..cfb79477d72 100644
--- a/src/server/game/Spells/SpellScript.cpp
+++ b/src/server/game/Spells/SpellScript.cpp
@@ -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();