Skip to content

Commit 6aa25a1

Browse files
LocalIdentityLocalIdentity
andauthored
Fix The Adorned not applying to jewels in outer tree sockets (PathOfBuildingCommunity#7086)
The check for if the jewel came from the tree was coupled to the check to see if it was an expansion jewel so it didn't stop the jewel applying to Abyssal sockets on gear The only way I could see to get the jewel to apply to outer tree sockets was to make sure it didn't have a parent attribute in the expansionJewel attribute Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 1d59c2e commit 6aa25a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Modules/CalcSetup.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,8 @@ function calcs.initEnv(build, mode, override, specEnv)
952952
combinedList:MergeMod(mod)
953953
end
954954
env.itemModDB:ScaleAddList(combinedList, scale)
955-
elseif env.modDB.multipliers["CorruptedMagicJewelEffect"] and item.type == "Jewel" and item.rarity == "MAGIC" and item.corrupted and not (item.base.subType == "Charm" or slot.nodeId and env.build.spec.nodes[tonumber(slot.nodeId)].expansionJewel) then
955+
elseif env.modDB.multipliers["CorruptedMagicJewelEffect"] and item.type == "Jewel" and item.rarity == "MAGIC" and item.corrupted and slot.nodeId and
956+
not (item.base.subType == "Charm" or env.build.spec.nodes[tonumber(slot.nodeId)].expansionJewel and env.build.spec.nodes[tonumber(slot.nodeId)].expansionJewel.parent) then
956957
scale = scale + env.modDB.multipliers["CorruptedMagicJewelEffect"]
957958
env.itemModDB:ScaleAddList(srcList, scale)
958959
else

0 commit comments

Comments
 (0)