Skip to content

Commit 98d242f

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Runegraft bonus for Boots / Gloves scaling skill gems (#8764)
* Fix Runegraft bonus for Boots / Gloves scaling skill levels The Runegraft mod only scales mods on items that come from stats, since socketed gem effects are properties of a GrantedEffect, they are not scaled by the bonus effect * Filter out ExtraSkillMod --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 62bfd8e commit 98d242f

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/Modules/CalcSetup.lua

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,9 +1192,11 @@ function calcs.initEnv(build, mode, override, specEnv)
11921192
if gloveEffectMod ~= 0 then
11931193
local modList = env.player.itemList["Gloves"].modList
11941194
for _, mod in ipairs(modList) do
1195-
local modCopy = copyTable(mod)
1196-
modCopy.source = "Many Sources:" .. tostring(gloveEffectMod * 100) .. "% Gloves Bonus Effect"
1197-
modDB:ScaleAddMod(modCopy, gloveEffectMod)
1195+
if not (mod.name == "ExtraSupport" or mod.name == "ExtraSkill" or mod.name == "ExtraSupport" or mod.name == "ExtraSkillMod" or (mod[1] and mod[1].type == "SocketedIn")) then
1196+
local modCopy = copyTable(mod)
1197+
modCopy.source = tostring(gloveEffectMod * 100) .. "% Gloves Bonus Effect"
1198+
modDB:ScaleAddMod(modCopy, gloveEffectMod)
1199+
end
11981200
end
11991201
end
12001202
end
@@ -1203,9 +1205,11 @@ function calcs.initEnv(build, mode, override, specEnv)
12031205
if bootEffectMod ~= 0 then
12041206
local modList = env.player.itemList["Boots"].modList
12051207
for _, mod in ipairs(modList) do
1206-
local modCopy = copyTable(mod)
1207-
modCopy.source = "Many Sources:" .. tostring(bootEffectMod * 100) .. "% Boots Bonus Effect"
1208-
modDB:ScaleAddMod(modCopy, bootEffectMod)
1208+
if not (mod.name == "ExtraSupport" or mod.name == "ExtraSkill" or mod.name == "ExtraSupport" or mod.name == "ExtraSkillMod" or (mod[1] and mod[1].type == "SocketedIn")) then
1209+
local modCopy = copyTable(mod)
1210+
modCopy.source = tostring(bootEffectMod * 100) .. "% Boots Bonus Effect"
1211+
modDB:ScaleAddMod(modCopy, bootEffectMod)
1212+
end
12091213
end
12101214
end
12111215
end

0 commit comments

Comments
 (0)