From abe4ab6e27af84e66aa58af4d00c9808a2dceb7d Mon Sep 17 00:00:00 2001 From: Pingumania Date: Tue, 12 Sep 2023 21:35:55 +0200 Subject: [PATCH] Only add target line if there is actually a target --- core.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index 3a8ec1f..a6e9655 100644 --- a/core.lua +++ b/core.lua @@ -435,10 +435,10 @@ local function OnTooltipSetUnit(tip, data) text = text..targetName end end - end - local line = GetEmptyTrailingLine(tip) - line:SetText(text) + local line = GetEmptyTrailingLine(tip) + line:SetText(text) + end end end