Skip to content

Commit

Permalink
classpower: Use UPU
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Mar 3, 2023
1 parent dff23c0 commit 892e015
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 892e015

Please sign in to comment.