diff options
author | Ovahlord <dreadkiller@gmx.de> | 2025-02-22 07:45:25 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2025-02-22 07:45:25 +0100 |
commit | 6580687980bd3f5440eefd421dcbf894a39326fe (patch) | |
tree | 7de8bc203183c771165ecb049773c749051fb80c /src/server | |
parent | b46a556c92e7433e9e8d4b86d75e12e78706fac1 (diff) |
Core/Scripting: updated documentation for CalcDamage and CalcHealing hooks
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/game/Spells/SpellScript.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h index 974772bd337..bc4050b428a 100644 --- a/src/server/game/Spells/SpellScript.h +++ b/src/server/game/Spells/SpellScript.h @@ -884,12 +884,12 @@ public: #define SpellDestinationTargetSelectFn(F, I, N) DestinationTargetSelectHandler(&F, I, N) // example: CalcDamage += SpellCalcDamageFn(class::function); - // where function is void function(Unit* victim, int32& damage, int32& flatMod, float& pctMod) + // where function is void function(SpellEffectInfo const& effectInfo, Unit* victim, int32& damage, int32& flatMod, float& pctMod) HookList<DamageAndHealingCalcHandler> CalcDamage; #define SpellCalcDamageFn(F) DamageAndHealingCalcHandler(&F) // example: CalcHealing += SpellCalcHealingFn(class::function); - // where function is void function(Unit* victim, int32& healing, int32& flatMod, float& pctMod) + // where function is void function(SpellEffectInfo const& spellEffectInfo, Unit* victim, int32& healing, int32& flatMod, float& pctMod) HookList<DamageAndHealingCalcHandler> CalcHealing; #define SpellCalcHealingFn(F) DamageAndHealingCalcHandler(&F) |