diff --git a/changelog.md b/changelog.md index 764c39a..47de6ca 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,7 @@ v1.14.22: - Fixed reported issue with a Lua error on Wrath Classic clients. https://www.wowace.com/projects/ice-hud/issues/344 +- Fixed Vigor module not working when riding Grotto Netherwing Drake (and theoretically all future Dragonriding mount types). v1.14.21: diff --git a/modules/DragonridingVigor.lua b/modules/DragonridingVigor.lua index 8c97776..53475a3 100644 --- a/modules/DragonridingVigor.lua +++ b/modules/DragonridingVigor.lua @@ -7,10 +7,12 @@ local DragonridingBuffs = { 368899, -- Windborn Velocidrake 368901, -- Cliffside Wylderdrake 368893, -- Winding Slitherdrake + 412088, -- Grotto Netherwing Drake } local vigorWidgetSetID = 283 local vigorWidgetID = 4460 +local knowsAlternateMountEnum = Enum and Enum.PowerType and Enum.PowerType.AlternateMount local unitPowerType = Enum and Enum.PowerType and Enum.PowerType.AlternateMount unitPowerType = unitPowerType or ALTERNATE_POWER_INDEX @@ -52,7 +54,9 @@ function DragonridingVigor.prototype:CheckShouldShow(event, unit, info) return end - if IceHUD:HasAnyBuff("player", DragonridingBuffs) then + if knowsAlternateMountEnum and UnitPowerMax(self.unit, unitPowerType) > 0 then + self:Show(true) + elseif IceHUD:HasAnyBuff("player", DragonridingBuffs) then self:Show(true) else self:Show(false) diff --git a/this_version.md b/this_version.md index b6d1728..9cdaf72 100644 --- a/this_version.md +++ b/this_version.md @@ -3,6 +3,7 @@ v1.14.22: - Fixed reported issue with a Lua error on Wrath Classic clients. https://www.wowace.com/projects/ice-hud/issues/344 +- Fixed Vigor module not working when riding Grotto Netherwing Drake (and theoretically all future Dragonriding mount types). v1.14.21: