From aec0cd22300bbaf14d6b0038603c44c7e779115f Mon Sep 17 00:00:00 2001 From: Exoridus Date: Tue, 14 Nov 2023 01:59:51 +0100 Subject: [PATCH] Fix invalid IsGUIDInGroup call --- KillTrack.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/KillTrack.lua b/KillTrack.lua index 1073803..c2d4ed4 100644 --- a/KillTrack.lua +++ b/KillTrack.lua @@ -222,8 +222,8 @@ function KT.Events.COMBAT_LOG_EVENT_UNFILTERED(self) -- Perform solo/group checks local d_id = KTT:GUIDToID(d_guid) - local firstDamage = FirstDamage[d_guid] or "" - local lastDamage = LastDamage[d_guid] or "" + local firstDamage = FirstDamage[d_guid] + local lastDamage = LastDamage[d_guid] local firstByPlayer = firstDamage == self.PlayerGUID or firstDamage == UnitGUID("pet") local firstByGroup = self:IsInGroup(firstDamage) local lastByPlayer = lastDamage == self.PlayerGUID or lastDamage == UnitGUID("pet") @@ -333,9 +333,9 @@ function KT:ToggleDebug() end function KT:IsInGroup(unit) + if not unit then return false end if unit == self.PlayerName or unit == self.PlayerGUID then return true end - if IsGUIDInGroup(unit) then return true end - return false + return IsGUIDInGroup(unit) end function KT:SetThreshold(threshold)