Skip to content

Commit

Permalink
rune type
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Dec 1, 2024
1 parent ef3d6cd commit e5580c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ElvUI_Libraries/Core/oUF/elements/runes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ local function Enable(self, unit)
if oUF.isRetail then
oUF:RegisterEvent(self, 'PLAYER_SPECIALIZATION_CHANGED', ColorPath)
else
oUF:RegisterEvent(self, 'RUNE_TYPE_UPDATE', ColorPath, true)
self:RegisterEvent('RUNE_TYPE_UPDATE', ColorPath, true)
end

oUF:RegisterEvent(self, 'RUNE_POWER_UPDATE', Path, true)
self:RegisterEvent('RUNE_POWER_UPDATE', Path, true)

return true
end
Expand All @@ -300,10 +300,10 @@ local function Disable(self)
if oUF.isRetail then
oUF:UnregisterEvent(self, 'PLAYER_SPECIALIZATION_CHANGED', ColorPath)
else
oUF:UnregisterEvent(self, 'RUNE_TYPE_UPDATE', ColorPath)
self:UnregisterEvent('RUNE_TYPE_UPDATE', ColorPath)
end

oUF:UnregisterEvent(self, 'RUNE_POWER_UPDATE', Path)
self:UnregisterEvent('RUNE_POWER_UPDATE', Path)
end
end

Expand Down
1 change: 1 addition & 0 deletions ElvUI_Libraries/Core/oUF/elements/tags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ local vars = setmetatable({}, {

_ENV._VARS = vars

-- ElvUI switches to UNIT_POWER_FREQUENT for regen powers
local tagEvents = {
['affix'] = 'UNIT_CLASSIFICATION_CHANGED',
['arenaspec'] = 'ARENA_PREP_OPPONENT_SPECIALIZATIONS',
Expand Down

0 comments on commit e5580c3

Please sign in to comment.