Skip to content

Commit 47bd07f

Browse files
committed
hopefully fix enemy forces count display after completion
1 parent 6c5e426 commit 47bd07f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

EventHandler.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,9 @@ function MPT:EventHandler(e, ...) -- internal checks whether the event comes fro
151151
if GetRestrictedActionStatus then return end -- disable for midnight. Edit this later when I know how the API works
152152
local _, se, _, _, _, _, _, destGUID = CombatLogGetCurrentEventInfo()
153153
if se == "UNIT_DIED" and destGUID then
154-
local npcID = select(6, strsplit("-", destGUID))
155154
if self.CurrentPull and self.CurrentPull[destGUID] then
156155
self.CurrentPull[destGUID] = "DEAD"
157-
self:UpdateCurrentPull()
156+
if not self.done then self:UpdateCurrentPull() end
158157
end
159158
end
160159
elseif e == "UNIT_THREAT_LIST_UPDATE" and C_ChallengeMode.IsChallengeModeActive() and InCombatLockdown() then
@@ -179,7 +178,7 @@ function MPT:EventHandler(e, ...) -- internal checks whether the event comes fro
179178
for k, _ in pairs(self.CurrentPull or {}) do
180179
self.CurrentPull[k] = nil
181180
end
182-
self:UpdateCurrentPull()
181+
if not self.done then self:UpdateCurrentPull() end
183182
end
184183
end
185184

0 commit comments

Comments
 (0)