Skip to content

Commit 1471d4f

Browse files
author
LocalIdentity
committed
Fix Ritualist Mystic Attunement node not scaling gem levels
The ascendancy node wasn't scaling gem levels as it wasn't being handled in CalcSetup before gems were initialised
1 parent 7f52b81 commit 1471d4f

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/Modules/CalcPerform.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ function calcs.perform(env, skipEHP)
14151415

14161416
for slot, item in pairs(env.player.itemList) do
14171417
local slotEffectMod = modDB:Sum("INC", nil, "EffectOfBonusesFrom" .. slot) / 100
1418-
if slotEffectMod > 0 then
1418+
if slotEffectMod > 0 and slot ~= "Amulet" then
14191419
if item.name:match("Kalandra's Touch") then
14201420
if slot == "Ring 2" then
14211421
item = env.player.itemList["Ring 1"]

src/Modules/CalcSetup.lua

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,10 +1373,20 @@ function calcs.initEnv(build, mode, override, specEnv)
13731373
local modList = env.player.itemList["Weapon 2"].modList
13741374
for _, mod in ipairs(modList) do
13751375
local modCopy = copyTable(mod)
1376-
modCopy.source = "Many Sources:" .. tostring(quiverEffectMod * 100) .. "% Quiver Bonus Effect"
1376+
modCopy.source = "Many Sources:".. colorCodes.SOURCE .. tostring(quiverEffectMod * 100) .. "% Quiver Bonus Effect"
13771377
modDB:ScaleAddMod(modCopy, quiverEffectMod)
13781378
end
13791379
end
1380+
1381+
if env.player.itemList["Amulet"] and env.player.itemList["Amulet"].type == "Amulet" then
1382+
local amuletEffectMod = env.modDB:Sum("INC", nil, "EffectOfBonusesFromAmulet") / 100
1383+
local modList = env.player.itemList["Amulet"].modList
1384+
for _, mod in ipairs(modList) do
1385+
local modCopy = copyTable(mod)
1386+
modCopy.source = "Many Sources:".. colorCodes.SOURCE .. tostring(amuletEffectMod * 100) .. "% Amulet Bonus Effect"
1387+
modDB:ScaleAddMod(modCopy, amuletEffectMod)
1388+
end
1389+
end
13801390

13811391
-- Find skills granted by tree nodes
13821392
if not accelerate.nodeAlloc then

0 commit comments

Comments
 (0)