From 7709cb91307aeddd2248fd551335bf484524c708 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 22 Jan 2023 15:56:41 -0600 Subject: [PATCH] Fix AltPower bar showing when it shouldn't --- changelog.md | 4 ++++ modules/PlayerAlternatePower.lua | 3 ++- this_version.md | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index f268011..241b6c5 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +v1.14.14: + +- Fixed PlayerAlternatePower bar showing up when it shouldn't have, such as when casting Power Word: Shield before ever having done anything to trigger a game-level "alternate power" event, such as mounting a Dragonriding mount. + v1.14.13: - Fixed Vigor module hiding default Climbing, Film, etc. UIs. (wowace ticket #336) diff --git a/modules/PlayerAlternatePower.lua b/modules/PlayerAlternatePower.lua index 4e20788..de1a540 100644 --- a/modules/PlayerAlternatePower.lua +++ b/modules/PlayerAlternatePower.lua @@ -35,11 +35,12 @@ function PlayerAlternatePower.prototype:Enable(core) self:RegisterEvent("UNIT_POWER_BAR_SHOW", "PowerBarShow") self:RegisterEvent("UNIT_POWER_BAR_HIDE", "PowerBarHide") - self.wantToShow = true self:Update(self.unit) if self.maxPower == 0 then self:Show(false) + else + self.wantToShow = true end if self.moduleSettings.hideBlizz then self:HideBlizz() diff --git a/this_version.md b/this_version.md index 4329f3f..296e2be 100644 --- a/this_version.md +++ b/this_version.md @@ -1,5 +1,9 @@ # Changelog +v1.14.14: + +- Fixed PlayerAlternatePower bar showing up when it shouldn't have, such as when casting Power Word: Shield before ever having done anything to trigger a game-level "alternate power" event, such as mounting a Dragonriding mount. + v1.14.13: - Fixed Vigor module hiding default Climbing, Film, etc. UIs. (wowace ticket #336)