Fix max chi power not always updating correctly

This commit is contained in:
Parnic
2024-11-27 14:40:54 -06:00
parent a4060dff6f
commit e6bd39352c
3 changed files with 15 additions and 0 deletions

View File

@ -40,6 +40,13 @@ function HarmonyPower.prototype:Enable(core)
HarmonyPower.super.prototype.Enable(self, core)
self:RegisterEvent("UNIT_POWER_FREQUENT", "UpdateRunePower")
if IceHUD.EventExistsUnitMaxPower then
self:RegisterEvent("UNIT_MAXPOWER", "PlayerChiUpdate")
end
end
function HarmonyPower.prototype:PlayerChiUpdate()
self:Redraw()
end
function HarmonyPower.prototype:UpdateRunePower(event, arg1, arg2)