Skip to content

Commit

Permalink
Fixed an error when leaving a mythic+ instance before the run is comp…
Browse files Browse the repository at this point in the history
…leted
  • Loading branch information
Tercioo committed Oct 14, 2024
1 parent 0e5595e commit c5bad0e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5944,6 +5944,9 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
Details222.MythicPlus.WorldStateTimerStartAt = nil
Details222.MythicPlus.WorldStateTimerEndAt = nil
Details222.MythicPlus.LogStep("Event: CHALLENGE_MODE_START")

local activeKeystoneLevel, activeAffixIDs, wasActiveKeystoneCharged = C_ChallengeMode.GetActiveKeystoneInfo()
Details222.MythicPlus.Level = activeKeystoneLevel or 2
end
end

Expand Down
2 changes: 1 addition & 1 deletion functions/mythicdungeon/segments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function DetailsMythicPlusFrame.MergeSegmentsOnEnd() --~merge
DungeonTexture = Details222.MythicPlus.Texture,
DungeonBackgroundTexture = Details222.MythicPlus.BackgroundTexture,
SegmentType = DETAILS_SEGMENTTYPE_MYTHICDUNGEON_OVERALL,
SegmentName = Details.MythicPlus.DungeonName .. " +" .. Details222.MythicPlus.Level,
SegmentName = Details.MythicPlus.DungeonName .. " +" .. (Details222.MythicPlus.Level or 2),
}

--add all boss segments from this run to this new segment
Expand Down
3 changes: 3 additions & 0 deletions luaserver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,9 @@ BackdropTemplateMixin = {}
---@field GetPoint fun(self: uiobject, index: number): string, frame, string, number, number
---@field GetCenter fun(self: uiobject): number, number
---@field GetLeft fun(self: uiobject): number
---@field GetRight fun(self: uiobject): number
---@field GetTop fun(self: uiobject): number
---@field GetBottom fun(self: uiobject): number
---@field SetPoint fun(self: uiobject, point: anchorpoint, relativeFrame: uiobject, relativePoint: anchorpoint, xOffset: number, yOffset: number)
---@field ClearAllPoints fun(self: uiobject)
---@field CreateAnimationGroup fun(self: uiobject, name: string|nil, templateName: string|nil) : animationgroup
Expand Down

0 comments on commit c5bad0e

Please sign in to comment.