Skip to content

Commit

Permalink
classpower: Use UPU
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Nov 22, 2022
1 parent 14b4946 commit f28a83b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 f28a83b

Please sign in to comment.