Core/Spells: implement OnSpellStart spellscript hook that is getting called when the cast check has been successfully passed and the spell starts casting with a cast time
This commit is contained in:
1 parent
9b88acf4dc
commit
2e551a052e
3 files changed
+21
-1
No files matched your search
@@ -172,7 +172,8 @@ enum SpellScriptHookType
|
||||
SPELL_SCRIPT_HOOK_CHECK_CAST,
|
||||
SPELL_SCRIPT_HOOK_BEFORE_CAST,
|
||||
SPELL_SCRIPT_HOOK_ON_CAST,
|
||||
SPELL_SCRIPT_HOOK_AFTER_CAST
|
||||
SPELL_SCRIPT_HOOK_AFTER_CAST,
|
||||
SPELL_SCRIPT_HOOK_ON_SPELL_START
|
||||
};
|
||||
|
||||
#define HOOK_SPELL_HIT_START SPELL_SCRIPT_HOOK_EFFECT_HIT
|
||||
@@ -307,6 +308,8 @@ class TC_GAME_API SpellScript : public _SpellScript
|
||||
// SpellScript interface
|
||||
// hooks to which you can attach your functions
|
||||
//
|
||||
// example: OnSpellStart += SpellCastFn(class::function);
|
||||
HookList<CastHandler> OnSpellStart;
|
||||
// example: BeforeCast += SpellCastFn(class::function);
|
||||
HookList<CastHandler> BeforeCast;
|
||||
// example: OnCast += SpellCastFn(class::function);
|
||||
|
||||
Reference in new issue
Block a user