Skip to content

Commit

Permalink
fix herotalents
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds committed Aug 5, 2024
1 parent 15d5b65 commit d5183ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ local function gatherTalent()
if configId == nil then return end
local configInfo = C_Traits.GetConfigInfo(configId)
if configInfo == nil then return end
local subTreeIDs = C_ClassTalents.GetHeroTalentSpecsForClassSpec()
for _, treeId in ipairs(configInfo.treeIDs) do
local nodes = C_Traits.GetTreeNodes(treeId)
for _, nodeId in ipairs(nodes) do
Expand All @@ -166,7 +167,8 @@ local function gatherTalent()
end
specDB.spellIdToTalentId[spellId] = talentId
specDB.spellNameToTalentId[spellName] = talentId
if node.subTreeID then
local subTreeIndex = node.subTreeID and tIndexOf(subTreeIDs, node.subTreeID) or nil
if subTreeIndex then
specDB.spellNameIsHero[spellName] = true
specDB.spellIDIsHero[spellId] = true
end
Expand Down

0 comments on commit d5183ef

Please sign in to comment.