Skip to content

Commit

Permalink
Merge pull request #26 from Exoridus/master
Browse files Browse the repository at this point in the history
Fix invalid IsGUIDInGroup call
  • Loading branch information
Sharparam authored Nov 14, 2023
2 parents 7124141 + aec0cd2 commit a822678
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions KillTrack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<No One>"
local lastDamage = LastDamage[d_guid] or "<No One>"
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")
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a822678

Please sign in to comment.