Skip to content

Commit

Permalink
Merge branch 'main' into ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Dec 1, 2024
2 parents 3a1a927 + ba0e9a5 commit b236240
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ElvUI_Libraries/Core/oUF/elements/additionalpower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ end
local function ElementEnable(self)
local element = self.AdditionalPower

self:RegisterEvent('UNIT_POWER_UPDATE', Path)
self:RegisterEvent('UNIT_POWER_FREQUENT', Path)
self:RegisterEvent('UNIT_MAXPOWER', Path)

element:Show()
Expand All @@ -185,7 +185,7 @@ end
local function ElementDisable(self)
local element = self.AdditionalPower

self:UnregisterEvent('UNIT_POWER_UPDATE', Path)
self:UnregisterEvent('UNIT_POWER_FREQUENT', Path)
self:UnregisterEvent('UNIT_MAXPOWER', Path)

element:Hide()
Expand Down
4 changes: 2 additions & 2 deletions ElvUI_Libraries/Core/oUF/elements/classpower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ end

do
function ClassPowerEnable(self)
self:RegisterEvent('UNIT_POWER_UPDATE', Path)
self:RegisterEvent('UNIT_POWER_FREQUENT', Path)
self:RegisterEvent('UNIT_MAXPOWER', Path)

if oUF.isRetail then -- according to Blizz any class may receive this event due to specific spell auras
Expand All @@ -277,7 +277,7 @@ do
end

function ClassPowerDisable(self)
self:UnregisterEvent('UNIT_POWER_UPDATE', Path)
self:UnregisterEvent('UNIT_POWER_FREQUENT', Path)
self:UnregisterEvent('UNIT_MAXPOWER', Path)

if oUF.isRetail then
Expand Down
4 changes: 2 additions & 2 deletions ElvUI_Libraries/Core/oUF/elements/eclipsebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ local function EclipseDirectionPath(self, ...)
end

local function ElementEnable(self)
self:RegisterEvent('UNIT_POWER_UPDATE', Path)
self:RegisterEvent('UNIT_POWER_FREQUENT', Path)

self.EclipseBar:Show()
EclipseDirectionPath(self, 'ElementEnable', GetEclipseDirection())
Expand All @@ -71,7 +71,7 @@ local function ElementEnable(self)
end

local function ElementDisable(self)
self:UnregisterEvent('UNIT_POWER_UPDATE', Path)
self:UnregisterEvent('UNIT_POWER_FREQUENT', Path)

self.EclipseBar:Hide()

Expand Down
4 changes: 2 additions & 2 deletions ElvUI_Libraries/Core/oUF/elements/power.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ local function Enable(self)
oUF:RegisterEvent(self, 'UNIT_POWER_BAR_HIDE', Path)
oUF:RegisterEvent(self, 'UNIT_POWER_BAR_SHOW', Path)

self:RegisterEvent('UNIT_POWER_UPDATE', Path)
self:RegisterEvent('UNIT_POWER_FREQUENT', Path)
self:RegisterEvent('UNIT_MAXPOWER', Path)

if(element:IsObjectType('StatusBar') and not element:GetStatusBarTexture()) then
Expand Down Expand Up @@ -410,7 +410,7 @@ local function Disable(self)
oUF:UnregisterEvent(self, 'UNIT_FLAGS', ColorPath)
oUF:UnregisterEvent(self, 'UNIT_THREAT_LIST_UPDATE', ColorPath)

self:UnregisterEvent('UNIT_POWER_UPDATE', Path)
self:UnregisterEvent('UNIT_POWER_FREQUENT', Path)
self:UnregisterEvent('UNIT_MAXPOWER', Path)
end
end
Expand Down

0 comments on commit b236240

Please sign in to comment.