Skip to content

Commit a822678

Browse files
authored
Merge pull request #26 from Exoridus/master
Fix invalid IsGUIDInGroup call
2 parents 7124141 + aec0cd2 commit a822678

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

KillTrack.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ function KT.Events.COMBAT_LOG_EVENT_UNFILTERED(self)
222222

223223
-- Perform solo/group checks
224224
local d_id = KTT:GUIDToID(d_guid)
225-
local firstDamage = FirstDamage[d_guid] or "<No One>"
226-
local lastDamage = LastDamage[d_guid] or "<No One>"
225+
local firstDamage = FirstDamage[d_guid]
226+
local lastDamage = LastDamage[d_guid]
227227
local firstByPlayer = firstDamage == self.PlayerGUID or firstDamage == UnitGUID("pet")
228228
local firstByGroup = self:IsInGroup(firstDamage)
229229
local lastByPlayer = lastDamage == self.PlayerGUID or lastDamage == UnitGUID("pet")
@@ -333,9 +333,9 @@ function KT:ToggleDebug()
333333
end
334334

335335
function KT:IsInGroup(unit)
336+
if not unit then return false end
336337
if unit == self.PlayerName or unit == self.PlayerGUID then return true end
337-
if IsGUIDInGroup(unit) then return true end
338-
return false
338+
return IsGUIDInGroup(unit)
339339
end
340340

341341
function KT:SetThreshold(threshold)

0 commit comments

Comments
 (0)