Fix AltPower bar showing when it shouldn't

This commit is contained in:
Parnic
2023-01-22 15:56:41 -06:00
parent c1f631b732
commit 7709cb9130
3 changed files with 10 additions and 1 deletions

View File

@ -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)

View File

@ -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()

View File

@ -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)