mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
fix nampower duration modifier calculation
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user