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