diff --git a/changelog.md b/changelog.md index 88b3e79..641f190 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +v1.14.34: + +- Fix Vigor showing up sometimes when it shouldn't. + v1.14.33: - Update TOC for Dragonflight to 10.2.5 diff --git a/modules/DragonridingVigor.lua b/modules/DragonridingVigor.lua index 6d64aa8..4a9f108 100644 --- a/modules/DragonridingVigor.lua +++ b/modules/DragonridingVigor.lua @@ -38,6 +38,7 @@ function DragonridingVigor.prototype:Enable(core) end DragonridingVigor.super.prototype.Enable(self, core) + self:Show(false) self:RegisterEvent("UNIT_AURA", "CheckShouldShow") self:RegisterEvent("UPDATE_UI_WIDGET", "UpdateVigorRecharge") @@ -54,16 +55,28 @@ function DragonridingVigor.prototype:CheckShouldShow(event, unit, info) return end - if knowsAlternateMountEnum and UnitPowerMax(self.unit, unitPowerType) > 0 then - self:Show(true) - elseif not knowsAlternateMountEnum and IceHUD:HasAnyBuff("player", DragonridingBuffs) then - self:Show(true) - else + local info = C_UIWidgetManager.GetFillUpFramesWidgetVisualizationInfo(vigorWidgetID) + if not info or info.shownState == 0 then self:Show(false) if self.moduleSettings.hideBlizz then self:ShowBlizz() end + + return end + + self:Show(true) + + -- if knowsAlternateMountEnum and UnitPowerMax(self.unit, unitPowerType) > 0 then + -- self:Show(true) + -- elseif not knowsAlternateMountEnum and IceHUD:HasAnyBuff("player", DragonridingBuffs) then + -- self:Show(true) + -- else + -- self:Show(false) + -- if self.moduleSettings.hideBlizz then + -- self:ShowBlizz() + -- end + -- end end function DragonridingVigor.prototype:UpdateRunePower(event, arg1, arg2) diff --git a/this_version.md b/this_version.md index 26c0622..a65d485 100644 --- a/this_version.md +++ b/this_version.md @@ -1,5 +1,9 @@ # Changelog +v1.14.34: + +- Fix Vigor showing up sometimes when it shouldn't. + v1.14.33: - Update TOC for Dragonflight to 10.2.5