From 42d225ef7100d5074f481aa17d4494e38bfd274b Mon Sep 17 00:00:00 2001 From: Adam Hellberg Date: Wed, 20 Dec 2023 19:49:49 +0100 Subject: [PATCH] Add additional check for empty string on IsInGroup Fixes #27 --- KillTrack.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KillTrack.lua b/KillTrack.lua index c2d4ed4..0154d02 100644 --- a/KillTrack.lua +++ b/KillTrack.lua @@ -333,7 +333,7 @@ function KT:ToggleDebug() end function KT:IsInGroup(unit) - if not unit then return false end + if not unit or unit == "" then return false end if unit == self.PlayerName or unit == self.PlayerGUID then return true end return IsGUIDInGroup(unit) end