aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2025-02-22 07:45:25 +0100
committerOvahlord <dreadkiller@gmx.de>2025-02-22 07:45:25 +0100
commit6580687980bd3f5440eefd421dcbf894a39326fe (patch)
tree7de8bc203183c771165ecb049773c749051fb80c
parentb46a556c92e7433e9e8d4b86d75e12e78706fac1 (diff)
Core/Scripting: updated documentation for CalcDamage and CalcHealing hooks
-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 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)