Skip to content

Commit

Permalink
Revert "FIX: fix jewels applying to the same node twice if overlapping (
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak authored Sep 10, 2022
1 parent d34316f commit e549bb6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Modules/CalcSetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,10 @@ function calcs.buildModListForNode(env, node)
else
modList:AddList(node.modList)
end

-- Keep track of what jewels have been applied to this node to avoid applying the same jewel twice if they overlap
-- Ref https://github.com/PathOfBuildingCommunity/PathOfBuilding/issues/4873
local appliedJewels = {}


-- Run first pass radius jewels
for _, rad in pairs(env.radiusJewelList) do
if rad.type == "Other" and rad.nodes[node.id] and not appliedJewels[rad.item.name] then
appliedJewels[rad.item.name] = true
if rad.type == "Other" and rad.nodes[node.id] then
rad.func(node, modList, rad.data)
end
end
Expand Down

0 comments on commit e549bb6

Please sign in to comment.