[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.
This commit is contained in:
Alex King 2023-12-16 23:48:19 -05:00 committed by GitHub
parent 0c9c2e25c1
commit 4ca6485398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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