๐[BUG][Spell] Haste duration penalized for WHM before lv48
Opened this issue ยท 0 comments
murrain commented
What does this bug affect?
Haste is only lasting ~157 seconds when it should be lasting 180 seconds.
Steps to Reproduce
Cast haste while between level 40 and 48.
Expected behavior
Haste should last 180 seconds.
Screenshots
Haste was cast at 23:19:52 and wore off at 23:22:30, but should have worn off at 23:22:52.
Setup Information
1.2.4~ Current version as of 05/18/2024
Additional context
I'm guessing Haste is always treated as a lv48 spell even though WHM has access at lv40. So currently WHM gets a duration penalty between levels 40-48.
AirSkyBoat/scripts/globals/spells/enhancing_spell.lua
if targetLevel < spellLevel then duration = duration * targetLevel / spellLevel end