Skip to content

Commit

Permalink
Test: Swap class power to not update as often
Browse files Browse the repository at this point in the history
After testing on my druid and monk there does not seem to be any noticeable change in combo points updating speed oUF-wow/oUF#625
  • Loading branch information
Wutname1 committed Nov 16, 2022
1 parent 9ced218 commit 201d23c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/oUF/elements/classpower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ end
do
function ClassPowerEnable(self)
self:RegisterEvent('UNIT_MAXPOWER', Path)
self:RegisterEvent('UNIT_POWER_FREQUENT', Path)
self:RegisterEvent('UNIT_POWER_UPDATE', Path)

-- according to Blizz any class may receive this event due to specific spell auras
self:RegisterEvent('UNIT_POWER_POINT_CHARGE', Path)
Expand All @@ -270,7 +270,7 @@ do
end

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

Expand Down

0 comments on commit 201d23c

Please sign in to comment.