Fix Forbidden jewels not finding the right ascendancy nodes (#8508)

This commit is contained in:
Wires77
2025-02-20 00:39:34 -06:00
committed by GitHub
parent 73080089e1
commit 4c16f49389
3 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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