From 4ca64853985ae17b0d7a62016dc0b321039d801f Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Sat, 16 Dec 2023 23:48:19 -0500 Subject: [PATCH] [Bug Fix] Fix issue with HOTBonusHealingSplitOverDuration Rule (#3776) # Notes - This rule didn't function properly since we didn't add extra heal regardless of rule setting. --- zone/effects.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zone/effects.cpp b/zone/effects.cpp index 62ed89bb4..254551d70 100644 --- a/zone/effects.cpp +++ b/zone/effects.cpp @@ -523,14 +523,15 @@ int64 Mob::GetActSpellHealing(uint16 spell_id, int64 value, Mob* target, bool fr } } - if (RuleB(Spells, HOTBonusHealingSplitOverDuration)) { - if (extra_heal) { + if (extra_heal) { + if (RuleB(Spells, HOTBonusHealingSplitOverDuration)) { const int duration = CalcBuffDuration(this, target, spell_id); if (duration > 0) { extra_heal /= duration; - value += extra_heal; } } + + value += extra_heal; } value *= critical_modifier;