From c5d688597d92a7e57b59f6516dab6a8afc107b68 Mon Sep 17 00:00:00 2001 From: GryllsAddons <107083057+GryllsAddons@users.noreply.github.com> Date: Fri, 14 Apr 2023 16:46:54 +0100 Subject: [PATCH] restore target logic --- unitscan.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unitscan.lua b/unitscan.lua index cbebbc8..e2a8431 100644 --- a/unitscan.lua +++ b/unitscan.lua @@ -58,7 +58,7 @@ function unitscan.restoreTarget() if (prevTargetName ~= targetName) then TargetLastTarget() end - else + elseif (not (prevTargetName == targetName)) then ClearTarget() end PlaySound = _PlaySound -- unmute