From 5b672e13168860cd8d3a8f6bcaab6bd243a4496e Mon Sep 17 00:00:00 2001 From: Val Voronov Date: Tue, 15 Nov 2022 08:48:01 +0700 Subject: [PATCH] classpower: Use UPU --- elements/classpower.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elements/classpower.lua b/elements/classpower.lua index 4e37f790..8ad91a07 100644 --- a/elements/classpower.lua +++ b/elements/classpower.lua @@ -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) @@ -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)