coa.16: Talents view no longer crashes on CoA custom classes
release / release (push) Successful in 5s

DataStore_Talents._GetTreeReference degrades to nil (was assert) when a custom class
(MONK, etc.) has no/partial talent reference data; Talents.lua skips background render
when GetTreeInfo returns no bg.
This commit is contained in:
2026-05-29 19:36:11 +02:00
parent f305f0a226
commit b8d619c3bb
3 changed files with 8 additions and 4 deletions
+6 -3
View File
@@ -239,9 +239,12 @@ local function _GetClassReference(class)
end
local function _GetTreeReference(class, tree)
assert(type(class) == "string")
assert(type(tree) == "string")
return addon.ref.global[class].Trees[tree]
-- CoA: custom classes (MONK, etc.) may have no/partial talent reference data, so a
-- tree lookup can arrive with a nil tree name. Degrade to nil instead of asserting.
if type(class) ~= "string" or type(tree) ~= "string" then return end
local c = addon.ref.global[class]
if not c or not c.Trees then return end
return c.Trees[tree]
end
local function _IsClassKnown(class)