fix nampower duration modifier calculation

This commit is contained in:
Jrc13245
2025-12-30 18:58:22 -05:00
parent 397a381c18
commit 2e9251ee0c
2 changed files with 14 additions and 16 deletions
+2 -1
View File
@@ -1701,9 +1701,10 @@ function API.GetModifiedDuration(spellId, baseDuration)
end
-- Apply flat modifier first, then percentage
-- Nampower returns percent as final multiplier (90 = 90% of original, not -10% change)
local modified = baseDuration + flat
if percent ~= 0 then
modified = modified * (1 + percent / 100)
modified = modified * (percent / 100)
end
return modified