You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EventHandler.lua
+3-10Lines changed: 3 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,10 @@ function MPT:ToggleEventRegister(On)
39
39
end
40
40
41
41
functionMPT:EventHandler(e, ...) -- internal checks whether the event comes from addon comms. We don't want to allow blizzard events to be fired manually
42
-
ife=="INSTANCE_ABANDON_VOTE_FINISHED" then
42
+
ife=="INSTANCE_ABANDON_VOTE_FINISHED" andC_ChallengeMode.IsChallengeModeActive() then
ifnotMPTSV.History[self.seasonID] thenMPTSV.History[self.seasonID] = {} end
68
-
if (notself.SeasonData[self.seasonID]) or (notself.SeasonData[self.seasonID].Dungeons) or (nott.contains(self.SeasonData[self.seasonID].Dungeons, cmap)) thenreturnend-- only add runs from dungeons of the current season
69
+
if (notself.SeasonData[self.seasonID]) or (notself.SeasonData[self.seasonID].Dungeons) or (nottContains(self.SeasonData[self.seasonID].Dungeons, cmap)) thenreturnend-- only add runs from dungeons of the current season
69
70
ifnotMPTSV.History[self.seasonID][G] thenMPTSV.History[self.seasonID][G] = {name=UnitName("player"), realm=GetNormalizedRealmName(), class=select(3, UnitClass("player"))} end
70
71
ifnotMPTSV.History[self.seasonID][G][cmap] thenMPTSV.History[self.seasonID][G][cmap] = {intime=0, depleted=0, highestrun=0, abandoned=0} end
71
72
ifnotMPTSV.History[self.seasonID][G][cmap][level] thenMPTSV.History[self.seasonID][G][cmap][level] = {intime=0, depleted=0, abandoned=0} end
0 commit comments