[Bug Fix] Add "IgnoreLevelBasedHasteCaps" rule to GetHaste() (#3705)

This commit is contained in:
Joel 2023-11-22 22:45:53 -05:00 committed by GitHub
parent 60b65da7f2
commit ebeaef598b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5315,7 +5315,7 @@ int Mob::GetHaste()
h += spellbonuses.hastetype2 > 10 ? 10 : spellbonuses.hastetype2;
// 26+ no cap, 1-25 10
if (level > 25) // 26+
if (level > 25 || (IsClient() && RuleB(Character, IgnoreLevelBasedHasteCaps))) // 26+
h += itembonuses.haste;
else // 1-25
h += itembonuses.haste > 10 ? 10 : itembonuses.haste;
@ -5337,7 +5337,7 @@ int Mob::GetHaste()
h = cap;
// 51+ 25 (despite there being higher spells...), 1-50 10
if (level > 50) { // 51+
if (level > 50 || (IsClient() && RuleB(Character, IgnoreLevelBasedHasteCaps))) { // 51+
cap = RuleI(Character, Hastev3Cap);
if (spellbonuses.hastetype3 > cap) {
h += cap;