Skip to content

Commit

Permalink
fix: combat 1 might be nil in MergeTrashCleanup
Browse files Browse the repository at this point in the history
fixes #24
  • Loading branch information
LiangYuxuan committed Oct 18, 2022
1 parent 0155c0c commit 4562a43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core.lua
Expand Up @@ -455,7 +455,9 @@ function EO:MergeTrashCleanup()
-- 2 - boss trash combat
-- 1 - boss combat

local runID = select(2, Details:GetCombat(1):IsMythicDungeon())
-- Combat 1 might be nil sometimes (#24)
local bossCombat = Details:GetCombat(1)
local runID = bossCombat and select(2, bossCombat:IsMythicDungeon())

local baseCombat = Details:GetCombat(2)
-- killed boss before any combat
Expand Down

0 comments on commit 4562a43

Please sign in to comment.