From e6bd39352c7c01b9dfbce7c5aaa82de0ffe05599 Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 27 Nov 2024 14:40:54 -0600 Subject: [PATCH] Fix max chi power not always updating correctly --- changelog.md | 4 ++++ modules/HarmonyPower.lua | 7 +++++++ this_version.md | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/changelog.md b/changelog.md index 55ef258..e8ea9e6 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +v1.15.10: + +- Fix Chi not updating properly when the player's maximum amount of Chi points changes (e.g. via Ascension talent). + v1.15.9: - Update Cataclysm Classic TOC to 4.4.1 diff --git a/modules/HarmonyPower.lua b/modules/HarmonyPower.lua index 6bdc40f..f724723 100644 --- a/modules/HarmonyPower.lua +++ b/modules/HarmonyPower.lua @@ -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) diff --git a/this_version.md b/this_version.md index 548b7dd..f463630 100644 --- a/this_version.md +++ b/this_version.md @@ -1,5 +1,9 @@ # Changelog +v1.15.10: + +- Fix Chi not updating properly when the player's maximum amount of Chi points changes (e.g. via Ascension talent). + v1.15.9: - Update Cataclysm Classic TOC to 4.4.1