From 72ec1ae7c490bed579931964428b25e4ac34dca4 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sat, 22 Feb 2025 07:45:25 +0100 Subject: Core/Scripting: updated documentation for CalcDamage and CalcHealing hooks (cherry picked from commit 6580687980bd3f5440eefd421dcbf894a39326fe) --- src/server/game/Spells/SpellScript.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 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 CalcHealing; #define SpellCalcHealingFn(F) DamageAndHealingCalcHandler(&F) -- cgit v1.2.3