Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Forbidden jewels not finding the right ascendancy nodes #8508

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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