![]() |
TrinityCore
|
#include "ObjectGuid.h"#include "SharedDefines.h"#include "SpellAuraDefines.h"#include "Util.h"#include <stack>
Include dependency graph for SpellScript.h:Go to the source code of this file.
Macros | |
| #define | SPELL_EFFECT_ANY ((uint16)-1) |
| #define | SPELL_AURA_ANY ((uint16)-1) |
| #define | SPELL_SCRIPT_STATE_END (SPELL_SCRIPT_STATE_UNLOADING + 1) |
| #define | HOOK_SPELL_HIT_START SPELL_SCRIPT_HOOK_EFFECT_HIT |
| #define | HOOK_SPELL_HIT_END SPELL_SCRIPT_HOOK_AFTER_HIT + 1 |
| #define | PrepareSpellScript(CLASSNAME) |
| #define | SpellCastFn(F) CastHandler(&F) |
| #define | SpellCheckCastFn(F) CheckCastHandler(&F) |
| #define | SpellEffectFn(F, I, N) EffectHandler(&F, I, N) |
| #define | BeforeSpellHitFn(F) BeforeHitHandler(&F) |
| #define | SpellHitFn(F) HitHandler(&F) |
| #define | SpellOnCalcCritChanceFn(F) OnCalcCritChanceHandler(&F) |
| #define | SpellObjectAreaTargetSelectFn(F, I, N) ObjectAreaTargetSelectHandler(&F, I, N) |
| #define | SpellObjectTargetSelectFn(F, I, N) ObjectTargetSelectHandler(&F, I, N) |
| #define | SpellDestinationTargetSelectFn(F, I, N) DestinationTargetSelectHandler(&F, I, N) |
| #define | SpellCalcDamageFn(F) DamageAndHealingCalcHandler(&F) |
| #define | SpellCalcHealingFn(F) DamageAndHealingCalcHandler(&F) |
| #define | SpellOnResistAbsorbCalculateFn(F) OnCalculateResistAbsorbHandler(&F) |
| #define | SpellOnEmpowerStageCompletedFn(F) EmpowerStageCompletedHandler(&F) |
| #define | SpellOnEmpowerCompletedFn(F) EmpowerStageCompletedHandler(&F) |
| #define | PrepareAuraScript(CLASSNAME) |
| #define | AuraCheckAreaTargetFn(F) CheckAreaTargetHandler(&F) |
| #define | AuraDispelFn(F) AuraDispelHandler(&F) |
| #define | AuraHeartbeatFn(F) AuraHeartbeatHandler(&F) |
| #define | AuraEffectApplyFn(F, I, N, M) EffectApplyHandler(&F, I, N, M) |
| #define | AuraEffectRemoveFn(F, I, N, M) EffectApplyHandler(&F, I, N, M) |
| #define | AuraEffectPeriodicFn(F, I, N) EffectPeriodicHandler(&F, I, N) |
| #define | AuraEffectUpdatePeriodicFn(F, I, N) EffectUpdatePeriodicHandler(&F, I, N) |
| #define | AuraEffectCalcAmountFn(F, I, N) EffectCalcAmountHandler(&F, I, N) |
| #define | AuraEffectCalcPeriodicFn(F, I, N) EffectCalcPeriodicHandler(&F, I, N) |
| #define | AuraEffectCalcSpellModFn(F, I, N) EffectCalcSpellModHandler(&F, I, N) |
| #define | AuraEffectCalcCritChanceFn(F, I, N) EffectCalcCritChanceHandler(&F, I, N) |
| #define | AuraEffectCalcDamageFn(F, I, N) EffectCalcDamageAndHealingHandler(&F, I, N) |
| #define | AuraEffectCalcHealingFn(F, I, N) EffectCalcDamageAndHealingHandler(&F, I, N) |
| #define | AuraEffectCalcAbsorbFn(F, I) EffectCalcDamageAndHealingHandler(&F, I, SPELL_AURA_SCHOOL_ABSORB) |
| #define | AuraEffectAbsorbFn(F, I) EffectAbsorbHandler(&F, I, SPELL_AURA_SCHOOL_ABSORB) |
| #define | AuraEffectAbsorbOverkillFn(F, I) EffectAbsorbHandler(&F, I, SPELL_AURA_SCHOOL_ABSORB_OVERKILL) |
| #define | AuraEffectAbsorbHealFn(F, I) EffectAbsorbHealHandler(&F, I, SPELL_AURA_SCHOOL_HEAL_ABSORB) |
| #define | AuraEffectManaShieldFn(F, I) EffectAbsorbHandler(&F, I, SPELL_AURA_MANA_SHIELD) |
| #define | AuraEffectSplitFn(F, I) EffectAbsorbHandler(&F, I, SPELL_AURA_SPLIT_DAMAGE_PCT) |
| #define | AuraCheckProcFn(F) CheckProcHandler(&F) |
| #define | AuraCheckEffectProcFn(F, I, N) CheckEffectProcHandler(&F, I, N) |
| #define | AuraProcFn(F) AuraProcHandler(&F) |
| #define | AuraEffectProcFn(F, I, N) EffectProcHandler(&F, I, N) |
| #define | AuraEnterLeaveCombatFn(F) EnterLeaveCombatHandler(&F) |
Typedefs | |
| using | SpellEffectValue = double |
| #define AuraCheckAreaTargetFn | ( | F | ) | CheckAreaTargetHandler(&F) |
Definition at line 1658 of file SpellScript.h.
| #define AuraCheckEffectProcFn | ( | F, | |
| I, | |||
| N | |||
| ) | CheckEffectProcHandler(&F, I, N) |
Definition at line 1793 of file SpellScript.h.
| #define AuraCheckProcFn | ( | F | ) | CheckProcHandler(&F) |
Definition at line 1787 of file SpellScript.h.
| #define AuraDispelFn | ( | F | ) | AuraDispelHandler(&F) |
Definition at line 1668 of file SpellScript.h.
| #define AuraEffectAbsorbFn | ( | F, | |
| I | |||
| ) | EffectAbsorbHandler(&F, I, SPELL_AURA_SCHOOL_ABSORB) |
Definition at line 1747 of file SpellScript.h.
| #define AuraEffectAbsorbHealFn | ( | F, | |
| I | |||
| ) | EffectAbsorbHealHandler(&F, I, SPELL_AURA_SCHOOL_HEAL_ABSORB) |
Definition at line 1759 of file SpellScript.h.
| #define AuraEffectAbsorbOverkillFn | ( | F, | |
| I | |||
| ) | EffectAbsorbHandler(&F, I, SPELL_AURA_SCHOOL_ABSORB_OVERKILL) |
Definition at line 1748 of file SpellScript.h.
| #define AuraEffectApplyFn | ( | F, | |
| I, | |||
| N, | |||
| M | |||
| ) | EffectApplyHandler(&F, I, N, M) |
Definition at line 1685 of file SpellScript.h.
| #define AuraEffectCalcAbsorbFn | ( | F, | |
| I | |||
| ) | EffectCalcDamageAndHealingHandler(&F, I, SPELL_AURA_SCHOOL_ABSORB) |
Definition at line 1741 of file SpellScript.h.
| #define AuraEffectCalcAmountFn | ( | F, | |
| I, | |||
| N | |||
| ) | EffectCalcAmountHandler(&F, I, N) |
Definition at line 1714 of file SpellScript.h.
| #define AuraEffectCalcCritChanceFn | ( | F, | |
| I, | |||
| N | |||
| ) | EffectCalcCritChanceHandler(&F, I, N) |
Definition at line 1732 of file SpellScript.h.
| #define AuraEffectCalcDamageFn | ( | F, | |
| I, | |||
| N | |||
| ) | EffectCalcDamageAndHealingHandler(&F, I, N) |
Definition at line 1739 of file SpellScript.h.
| #define AuraEffectCalcHealingFn | ( | F, | |
| I, | |||
| N | |||
| ) | EffectCalcDamageAndHealingHandler(&F, I, N) |
Definition at line 1740 of file SpellScript.h.
| #define AuraEffectCalcPeriodicFn | ( | F, | |
| I, | |||
| N | |||
| ) | EffectCalcPeriodicHandler(&F, I, N) |
Definition at line 1720 of file SpellScript.h.
| #define AuraEffectCalcSpellModFn | ( | F, | |
| I, | |||
| N | |||
| ) | EffectCalcSpellModHandler(&F, I, N) |
Definition at line 1726 of file SpellScript.h.
| #define AuraEffectManaShieldFn | ( | F, | |
| I | |||
| ) | EffectAbsorbHandler(&F, I, SPELL_AURA_MANA_SHIELD) |
Definition at line 1770 of file SpellScript.h.
| #define AuraEffectPeriodicFn | ( | F, | |
| I, | |||
| N | |||
| ) | EffectPeriodicHandler(&F, I, N) |
Definition at line 1702 of file SpellScript.h.
| #define AuraEffectProcFn | ( | F, | |
| I, | |||
| N | |||
| ) | EffectProcHandler(&F, I, N) |
Definition at line 1817 of file SpellScript.h.
| #define AuraEffectRemoveFn | ( | F, | |
| I, | |||
| N, | |||
| M | |||
| ) | EffectApplyHandler(&F, I, N, M) |
Definition at line 1696 of file SpellScript.h.
| #define AuraEffectSplitFn | ( | F, | |
| I | |||
| ) | EffectAbsorbHandler(&F, I, SPELL_AURA_SPLIT_DAMAGE_PCT) |
Definition at line 1781 of file SpellScript.h.
| #define AuraEffectUpdatePeriodicFn | ( | F, | |
| I, | |||
| N | |||
| ) | EffectUpdatePeriodicHandler(&F, I, N) |
Definition at line 1708 of file SpellScript.h.
| #define AuraEnterLeaveCombatFn | ( | F | ) | EnterLeaveCombatHandler(&F) |
Definition at line 1823 of file SpellScript.h.
| #define AuraHeartbeatFn | ( | F | ) | AuraHeartbeatHandler(&F) |
Definition at line 1674 of file SpellScript.h.
| #define AuraProcFn | ( | F | ) | AuraProcHandler(&F) |
Definition at line 1807 of file SpellScript.h.
| #define BeforeSpellHitFn | ( | F | ) | BeforeHitHandler(&F) |
Definition at line 773 of file SpellScript.h.
| #define HOOK_SPELL_HIT_END SPELL_SCRIPT_HOOK_AFTER_HIT + 1 |
Definition at line 293 of file SpellScript.h.
| #define HOOK_SPELL_HIT_START SPELL_SCRIPT_HOOK_EFFECT_HIT |
Definition at line 292 of file SpellScript.h.
| #define PrepareAuraScript | ( | CLASSNAME | ) |
Definition at line 1621 of file SpellScript.h.
| #define PrepareSpellScript | ( | CLASSNAME | ) |
Definition at line 715 of file SpellScript.h.
| #define SPELL_AURA_ANY ((uint16)-1) |
Definition at line 61 of file SpellScript.h.
| #define SPELL_EFFECT_ANY ((uint16)-1) |
Definition at line 60 of file SpellScript.h.
| #define SPELL_SCRIPT_STATE_END (SPELL_SCRIPT_STATE_UNLOADING + 1) |
Definition at line 70 of file SpellScript.h.
| #define SpellCalcDamageFn | ( | F | ) | DamageAndHealingCalcHandler(&F) |
Definition at line 805 of file SpellScript.h.
| #define SpellCalcHealingFn | ( | F | ) | DamageAndHealingCalcHandler(&F) |
Definition at line 810 of file SpellScript.h.
| #define SpellCastFn | ( | F | ) | CastHandler(&F) |
Definition at line 751 of file SpellScript.h.
| #define SpellCheckCastFn | ( | F | ) | CheckCastHandler(&F) |
Definition at line 756 of file SpellScript.h.
| #define SpellDestinationTargetSelectFn | ( | F, | |
| I, | |||
| N | |||
| ) | DestinationTargetSelectHandler(&F, I, N) |
Definition at line 800 of file SpellScript.h.
| #define SpellEffectFn | ( | F, | |
| I, | |||
| N | |||
| ) | EffectHandler(&F, I, N) |
Definition at line 768 of file SpellScript.h.
| #define SpellHitFn | ( | F | ) | HitHandler(&F) |
Definition at line 780 of file SpellScript.h.
| #define SpellObjectAreaTargetSelectFn | ( | F, | |
| I, | |||
| N | |||
| ) | ObjectAreaTargetSelectHandler(&F, I, N) |
Definition at line 790 of file SpellScript.h.
| #define SpellObjectTargetSelectFn | ( | F, | |
| I, | |||
| N | |||
| ) | ObjectTargetSelectHandler(&F, I, N) |
Definition at line 795 of file SpellScript.h.
| #define SpellOnCalcCritChanceFn | ( | F | ) | OnCalcCritChanceHandler(&F) |
Definition at line 785 of file SpellScript.h.
| #define SpellOnEmpowerCompletedFn | ( | F | ) | EmpowerStageCompletedHandler(&F) |
Definition at line 825 of file SpellScript.h.
| #define SpellOnEmpowerStageCompletedFn | ( | F | ) | EmpowerStageCompletedHandler(&F) |
Definition at line 820 of file SpellScript.h.
| #define SpellOnResistAbsorbCalculateFn | ( | F | ) | OnCalculateResistAbsorbHandler(&F) |
Definition at line 815 of file SpellScript.h.
| using SpellEffectValue = double |
Definition at line 58 of file SpellScript.h.
| enum AuraScriptHookType |
Definition at line 970 of file SpellScript.h.
| enum SpellScriptHookType |
Definition at line 265 of file SpellScript.h.
| enum SpellScriptState |
| Enumerator | |
|---|---|
| SPELL_SCRIPT_STATE_NONE | |
| SPELL_SCRIPT_STATE_REGISTRATION | |
| SPELL_SCRIPT_STATE_LOADING | |
| SPELL_SCRIPT_STATE_UNLOADING | |
Definition at line 63 of file SpellScript.h.