Fix Forbidden jewels not finding the right ascendancy nodes (#8508)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user