Skip to content

Commit

Permalink
Fix Forbidden jewels not finding the right ascendancy nodes (#8508)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wires77 authored Feb 20, 2025
1 parent 7308008 commit 4c16f49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Classes/CalcBreakdownControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function CalcBreakdownClass:AddModSection(sectionData, modList)
local nodeId = row.mod.source:match("Tree:(%d+)")
if nodeId then
local nodeIdNumber = tonumber(nodeId)
local node = build.spec.nodes[nodeIdNumber] or build.spec.tree.nodes[nodeIdNumber]
local node = build.spec.nodes[nodeIdNumber] or build.spec.tree.nodes[nodeIdNumber] or build.latestTree.nodes[nodeIdNumber]
row.sourceName = node.dn
row.sourceNameNode = node
end
Expand Down
4 changes: 3 additions & 1 deletion src/Classes/PassiveTree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,9 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
end

-- Late load the Generated data so we can take advantage of a tree existing
buildTreeDependentUniques(self)
if treeVersion == latestTreeVersion then
buildTreeDependentUniques(self)
end
end)

function PassiveTreeClass:ProcessStats(node, startIndex)
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/CalcSetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ function calcs.initEnv(build, mode, override, specEnv)
local name = ascTbl.name
if matchedName[name] and matchedName[name].side ~= ascTbl.side and matchedName[name].matched == false then
matchedName[name].matched = true
local node = env.spec.tree.ascendancyMap[name]
local node = env.spec.tree.ascendancyMap[name] or build.latestTree.ascendancyMap[name]
if node and (not override.removeNodes or not override.removeNodes[node.id]) then
if env.itemModDB.conditions["ForbiddenFlesh"] == env.spec.curClassName and env.itemModDB.conditions["ForbiddenFlame"] == env.spec.curClassName then
env.allocNodes[node.id] = node
Expand Down

0 comments on commit 4c16f49

Please sign in to comment.