health-numbers: disable percentage on power bars

This commit is contained in:
shagu
2021-08-24 21:02:57 +02:00
parent f0af14d952
commit e543a3b104
+1 -1
View File
@@ -64,7 +64,7 @@ module.enable = function(self)
cur, max = ShaguTweaks.libhealth:GetUnitHealth(sb.unit)
end
if cur == percent then
if cur == percent and strfind(sb:GetName(), "Health") then
string:SetText(percent .. "%")
elseif sb:GetName() == "TargetFrameHealthBar" and cur < max then
string:SetText(Abbreviate(cur) .. " - " .. percent .. "%")