diff --git a/Classes.lua b/Classes.lua index 5c06b1e66..e1458d5c8 100644 --- a/Classes.lua +++ b/Classes.lua @@ -595,19 +595,17 @@ local HekiliSpecMixin = { end end - if not a.item then - self.abilities[ ability ] = a - self.abilities[ a.id ] = a - - if not a.unlisted then class.abilityList[ ability ] = class.abilityList[ ability ] or a.listName or a.name end - - if data.copy then - if type( data.copy ) == 'string' or type( data.copy ) == 'number' then - self.abilities[ data.copy ] = a - elseif type( data.copy ) == 'table' then - for _, key in ipairs( data.copy ) do - self.abilities[ key ] = a - end + self.abilities[ ability ] = a + self.abilities[ a.id ] = a + + if not a.unlisted then class.abilityList[ ability ] = class.abilityList[ ability ] or a.listName or a.name end + + if data.copy then + if type( data.copy ) == 'string' or type( data.copy ) == 'number' then + self.abilities[ data.copy ] = a + elseif type( data.copy ) == 'table' then + for _, key in ipairs( data.copy ) do + self.abilities[ key ] = a end end end @@ -5050,10 +5048,11 @@ function Hekili:SpecializationChanged() ns.callHook( 'specializationChanged' ) ns.updateTalents() + -- ns.updateGear() self:UpdateDisplayVisibility() - self:RefreshOptions() + self:RefreshOptions() self:LoadScripts() end diff --git a/Events.lua b/Events.lua index 0b146b309..0af934a74 100644 --- a/Events.lua +++ b/Events.lua @@ -740,7 +740,7 @@ do local lastEssence = class.active_essence ns.updateEssences() - local sameItems = #wasWearing == #state.items + local sameItems = true if sameItems then for i = 1, #state.items do diff --git a/Scripts.lua b/Scripts.lua index bb00845cf..2a4133500 100644 --- a/Scripts.lua +++ b/Scripts.lua @@ -1284,7 +1284,7 @@ function scripts:LoadScripts() local ability if data.action then - ability = specData.abilities[ data.action ] or class.specs[0].abilities[ data.action ] + ability = specData.abilities[ data.action ] or class.abilities[ data.action ] end if ability then