Skip to content

Commit fec3356

Browse files
author
LocalIdentity
committed
Fix ring 3 jewel and ring applying after removing mod that grants them
The mod from the jewel and the ring were still applying even after you lost the mod that grants the additional ring slot
1 parent 33ffdad commit fec3356

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/Modules/CalcSetup.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,10 @@ function calcs.initEnv(build, mode, override, specEnv)
808808
local lordOfTheWilds = weaponFlagState.lordOfTheWilds
809809
for _, slot in pairs(build.itemsTab.orderedSlots) do
810810
local slotName = slot.slotName
811+
-- ignore item in Ring 3 if The Unseen Hand is not allocated
812+
if slotName == "Ring 3" and not nodesModsList:Flag(nil, "AdditionalRingSlot") then
813+
goto continue
814+
end
811815
local item
812816
if slotName == override.repSlotName then
813817
item = override.repItem
@@ -1019,7 +1023,8 @@ function calcs.initEnv(build, mode, override, specEnv)
10191023
if item and item.type == "Jewel" and slot.parentSlot then
10201024
-- Check if the item in the parent slot has enough Jewel Sockets
10211025
local parentItem = env.player.itemList[slot.parentSlot.slotName]
1022-
if not parentItem or parentItem.jewelSocketCount < slot.slotNum then
1026+
local parentSlotHidden = slot.parentSlot.slotName == "Ring 3" and not (modDB:Flag(nil, "AdditionalRingSlot") or nodesModsList:Flag(nil, "AdditionalRingSlot"))
1027+
if parentSlotHidden or not parentItem or parentItem.jewelSocketCount < slot.slotNum then
10231028
item = nil
10241029
else
10251030
scale = parentItem.socketedJewelEffectModifier

0 commit comments

Comments
 (0)