Only use HasBuff method as a fallback

If we can check the power type, we should rely on only that.
This commit is contained in:
Parnic
2024-01-19 07:26:55 -06:00
parent cfa86813a7
commit c0262de622

View File

@ -56,7 +56,7 @@ function DragonridingVigor.prototype:CheckShouldShow(event, unit, info)
if knowsAlternateMountEnum and UnitPowerMax(self.unit, unitPowerType) > 0 then if knowsAlternateMountEnum and UnitPowerMax(self.unit, unitPowerType) > 0 then
self:Show(true) self:Show(true)
elseif IceHUD:HasAnyBuff("player", DragonridingBuffs) then elseif not knowsAlternateMountEnum and IceHUD:HasAnyBuff("player", DragonridingBuffs) then
self:Show(true) self:Show(true)
else else
self:Show(false) self:Show(false)