Skip to content

Commit

Permalink
Fixed issues selecting specialization restrictions for hero talents
Browse files Browse the repository at this point in the history
  • Loading branch information
Breeni committed Aug 30, 2024
1 parent a4cc0ac commit 22cd2b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HeroTalents.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ local function UpdateSetFilters(set)

local filters = set.filters
filters.herotalents = set.subTreeID
filters.spec = filters.spec or Internal.GetSpecIDsByHeroTalentTreeID(set.subTreeID)
filters.spec = filters.spec or {unpack(Internal.GetSpecIDsByHeroTalentTreeID(set.subTreeID))} -- Clone the table

local specID = filters.spec
if type(specID) == "table" then
Expand Down Expand Up @@ -928,7 +928,7 @@ function BtWLoadoutsHeroTalentsMixin:Update(updatePosition, skipUpdateTree)

set.restrictions = set.restrictions or {}
self.RestrictionsDropDown:SetSelections(set.restrictions)
self.RestrictionsDropDown:SetLimitations("herotalents", treeID)
self.RestrictionsDropDown:SetLimitations("herotalents", subTreeID)
self.RestrictionsButton:SetEnabled(true);

if not self.Name:HasFocus() then
Expand Down

0 comments on commit 22cd2b9

Please sign in to comment.