Skip to content

Commit e9d0605

Browse files
authored
Revert "Fix #1149: Cluster jewel scaling causes rounding issues (#8821)" (#8858)
This reverts commit e5230c5.
1 parent d2ffc43 commit e9d0605

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/Modules/CalcSetup.lua

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,7 @@ function calcs.buildModListForNode(env, node)
110110
if node.type == "Keystone" then
111111
modList:AddMod(node.keystoneMod)
112112
else
113-
-- Apply effect scaling
114-
local scale = calcLib.mod(node.modList, nil, "PassiveSkillEffect")
115-
if scale ~= 1 then
116-
local combinedList = new("ModList")
117-
for _, mod in ipairs(node.modList) do
118-
combinedList:MergeMod(mod)
119-
end
120-
modList:ScaleAddList(combinedList, scale)
121-
else
122-
modList:AddList(node.modList)
123-
end
113+
modList:AddList(node.modList)
124114
end
125115

126116
-- Run first pass radius jewels
@@ -134,6 +124,14 @@ function calcs.buildModListForNode(env, node)
134124
wipeTable(modList)
135125
end
136126

127+
-- Apply effect scaling
128+
local scale = calcLib.mod(modList, nil, "PassiveSkillEffect")
129+
if scale ~= 1 then
130+
local scaledList = new("ModList")
131+
scaledList:ScaleAddList(modList, scale)
132+
modList = scaledList
133+
end
134+
137135
-- Run second pass radius jewels
138136
for _, rad in pairs(env.radiusJewelList) do
139137
if rad.nodes[node.id] and rad.nodes[node.id].type ~= "Mastery" and (rad.type == "Threshold" or (rad.type == "Self" and env.allocNodes[node.id]) or (rad.type == "SelfUnalloc" and not env.allocNodes[node.id])) then

0 commit comments

Comments
 (0)