aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2025-02-22 07:45:25 +0100
committerOvahlord <dreadkiller@gmx.de>2025-02-22 07:46:06 +0100
commit72ec1ae7c490bed579931964428b25e4ac34dca4 (patch)
tree4e15d6d66e2712ee8599962248cae46db3127910 /src/server
parentd2152fc92cd228a7ae49991db28df149a8c51f38 (diff)
Core/Scripting: updated documentation for CalcDamage and CalcHealing hooks
(cherry picked from commit 6580687980bd3f5440eefd421dcbf894a39326fe)
Diffstat (limited to 'src/server')
-rw-r--r--src/server/game/Spells/SpellScript.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h
index 81dd50708b1..9b0afabb33b 100644
--- a/src/server/game/Spells/SpellScript.h
+++ b/src/server/game/Spells/SpellScript.h
@@ -920,12 +920,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)