From 0a33d8cff6575da394f291beae45a92d50bfb2e5 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 6 Oct 2021 23:21:18 +0200 Subject: [PATCH] health-numbers: disable tbc target font string --- mods/health-numbers.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mods/health-numbers.lua b/mods/health-numbers.lua index e7796ac..163c85f 100644 --- a/mods/health-numbers.lua +++ b/mods/health-numbers.lua @@ -1,6 +1,8 @@ local _G = _G or getfenv(0) local Abbreviate = ShaguTweaks.Abbreviate local GetColorGradient = ShaguTweaks.GetColorGradient +local vanilla = ShaguTweaks.GetExpansion() == "vanilla" or nil + local module = ShaguTweaks:register({ title = "Real Health Numbers", description = "Estimates health numbers, and shows numbers on player, pet and target unit frames.", @@ -54,6 +56,11 @@ module.enable = function(self) local string = sb.TextString if string and sb.unit then + -- hide tbc text string element + if not vanilla then + TargetFrameHealthBarText:Hide() + end + sb.lockShow = 42 sb:Show()