mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 04:07:39 +00:00
[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:
+4
-3
@@ -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);
|
const int duration = CalcBuffDuration(this, target, spell_id);
|
||||||
if (duration > 0) {
|
if (duration > 0) {
|
||||||
extra_heal /= duration;
|
extra_heal /= duration;
|
||||||
value += extra_heal;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
value += extra_heal;
|
||||||
}
|
}
|
||||||
|
|
||||||
value *= critical_modifier;
|
value *= critical_modifier;
|
||||||
|
|||||||
Reference in New Issue
Block a user