Skip to content

Commit aeccaca

Browse files
authored
fix scaling flat lightning damage mods with Turbulent catalyst (#9775)
1 parent 4136feb commit aeccaca

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Modules/ItemTools.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ function itemLib.applyRange(line, range, valueScalar)
115115
if numbers == 0 and line:match("(%d+%.?%d*)%%? ") then --If a mod contains x or x% and is not already a ranged value, then only the first number will be scalable as any following numbers will always be conditions or unscalable values.
116116
numbers = 1
117117
end
118+
if numbers == 1 and line:match("Adds (%d+) to (%d+) (%w+) Damage") then -- any flat added damage that does not have a range on the first value (e.g. low level flat to attacks, hybrid lightning dmg, Prismweave lightning) needs to scale the second value if present
119+
numbers = 2
120+
end
118121

119122
return itemLib.applyValueScalar(line, valueScalar, numbers, precision)
120123
end

0 commit comments

Comments
 (0)