[Rule] Allow servers to adjust the filtering threshold for heals from damage (e.g. Mark of Kings). (#4327)

This commit is contained in:
Fryguy 2024-05-25 14:28:20 -04:00 committed by GitHub
parent 13a7532ef8
commit ca25122bfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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