From ca25122bfaaceee4c836b3548fa8e929f0836215 Mon Sep 17 00:00:00 2001 From: Fryguy Date: Sat, 25 May 2024 14:28:20 -0400 Subject: [PATCH] [Rule] Allow servers to adjust the filtering threshold for heals from damage (e.g. Mark of Kings). (#4327) --- common/ruletypes.h | 1 + zone/attack.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/ruletypes.h b/common/ruletypes.h index 9e27cbadf..785abd80b 100644 --- a/common/ruletypes.h +++ b/common/ruletypes.h @@ -505,6 +505,7 @@ RULE_BOOL(Spells, ManaTapsRequireNPCMana, false, "Enabling will require target t RULE_INT(Spells, HarmTouchCritRatio, 200, "Harmtouch crit bonus, on top of BaseCritRatio") RULE_BOOL(Spells, UseClassicSpellFocus, false, "Enabling will tell the server to handle random focus damage as classic spell imports lack the limit values.") RULE_BOOL(Spells, ManaTapsOnAnyClass, false, "Enabling this will allow you to cast mana taps on any class, this will bypass ManaTapsRequireNPCMana rule.") +RULE_INT(Spells, HealAmountMessageFilterThreshold, 100, "Lifetaps below this threshold will not have a message sent to the client (Heal will still process) 0 to Disable.") RULE_CATEGORY_END() RULE_CATEGORY(Combat) diff --git a/zone/attack.cpp b/zone/attack.cpp index fa6094207..e927853ba 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -4762,7 +4762,7 @@ void Mob::HealDamage(uint64 amount, Mob* caster, uint16 spell_id) else acthealed = amount; - if (acthealed > 100) { + if (acthealed > RuleI(Spells, HealAmountMessageFilterThreshold)) { if (caster) { if (IsBuffSpell(spell_id)) { // hots // message to caster