diff options
| author | QAston <none@none> | 2010-10-05 08:17:10 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2010-10-05 08:17:10 +0200 |
| commit | cac4cfda42f6d392fa6232bdb211334d5b5638fa (patch) | |
| tree | 3ad10e7a2f3bd613e59d60e89da8acef60d0d805 /src/server/game/Spells/SpellScript.h | |
| parent | b345dc5061980281f25f9f2159ea441a9b568786 (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.h')
| -rw-r--r-- | src/server/game/Spells/SpellScript.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h index 768a35c82f9..c79e1133bdd 100644 --- a/src/server/game/Spells/SpellScript.h +++ b/src/server/game/Spells/SpellScript.h @@ -152,6 +152,8 @@ class SpellScript : public _SpellScript void _InitHit(); bool _IsEffectPrevented(SpellEffIndex effIndex) {return m_hitPreventEffectMask & (1<<effIndex);}; bool _IsDefaultEffectPrevented(SpellEffIndex effIndex) {return m_hitPreventDefaultEffectMask & (1<<effIndex);}; + void _PrepareScriptCall(SpellScriptHookType hookType); + void _FinishScriptCall(); bool IsInHitPhase() { return (m_currentScriptState >= HOOK_SPELL_HIT_START && m_currentScriptState < HOOK_SPELL_HIT_END); }; bool IsInEffectHook() { return (m_currentScriptState == SPELL_SCRIPT_HOOK_EFFECT); }; private: |
