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

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