From 4b423559d452e962c0e32427eb242cc4e6bd7717 Mon Sep 17 00:00:00 2001 From: Val Voronov Date: Sun, 21 Jan 2024 13:37:54 +0700 Subject: [PATCH] classpower: Use UPU (#625) --- 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)