From e6deed5e95f7a70307605253dce2fd6b44cb44a1 Mon Sep 17 00:00:00 2001 From: GryllsAddons <107083057+GryllsAddons@users.noreply.github.com> Date: Sun, 26 Mar 2023 19:49:08 +0100 Subject: [PATCH] clear target for friendly units --- unitscan.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unitscan.lua b/unitscan.lua index 73e4629..c40693e 100644 --- a/unitscan.lua +++ b/unitscan.lua @@ -47,6 +47,8 @@ function unitscan.restore_target() TargetLastTarget() elseif dead then ClearTarget() + elseif reaction > 4 then + ClearTarget() end dead = nil reaction = nil @@ -228,7 +230,7 @@ function unitscan.LOAD() button:SetFontString(title) local subtitle = button:CreateFontString(nil, 'OVERLAY') - subtitle:SetFont([[Fonts\FRIZQT__.TTF]], 9) + subtitle:SetFont([[Fonts\FRIZQT__.TTF]], 12) subtitle:SetTextColor(0, 0, 0) subtitle:SetPoint('TOPLEFT', title, 'BOTTOMLEFT', 0, -4) subtitle:SetPoint('RIGHT', title )