From 376591863c127337c09c9e7cd000606f03addd5f Mon Sep 17 00:00:00 2001 From: Peechey <92683202+Peechey@users.noreply.github.com> Date: Fri, 17 Apr 2026 11:05:42 -0500 Subject: [PATCH] fix scaling flat lightning damage mods with Turbulent catalyst --- src/Modules/ItemTools.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Modules/ItemTools.lua b/src/Modules/ItemTools.lua index 70fd443aaa..c7b2ab54b4 100644 --- a/src/Modules/ItemTools.lua +++ b/src/Modules/ItemTools.lua @@ -115,6 +115,9 @@ function itemLib.applyRange(line, range, valueScalar) 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. numbers = 1 end + 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 + numbers = 2 + end return itemLib.applyValueScalar(line, valueScalar, numbers, precision) end