Skip to content

Commit

Permalink
More fixes for the heroic and mythic0 overall
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Sep 15, 2024
1 parent d5d3454 commit 7b34fc0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@
Details:EndCombat()

currentCombat.is_trash = false
currentCombat.combat_type = DETAILS_SEGMENTTYPE_DUNGEON_OVERALL
currentCombat.is_dungeon_overall = true
end

Expand Down
3 changes: 1 addition & 2 deletions classes/class_combat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -731,13 +731,12 @@ local segmentTypeToString = {
local instanceType = self.instance_type

if (instanceType == "party") then
local bossInfo = self:GetBossInfo()

if (self.is_dungeon_overall) then
self.combat_type = DETAILS_SEGMENTTYPE_DUNGEON_OVERALL
return DETAILS_SEGMENTTYPE_DUNGEON_OVERALL
end

local bossInfo = self:GetBossInfo()
if (bossInfo) then
if (bossInfo.mapid == 33 and bossInfo.diff_string == "Event" and bossInfo.id == 2879) then --Shadowfang Keep | The Crown Chemical Co.
self.combat_type = DETAILS_SEGMENTTYPE_EVENT_VALENTINEDAY
Expand Down
13 changes: 12 additions & 1 deletion frames/window_main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6651,6 +6651,13 @@ local buildSegmentTooltip = function(self, deltaTime)

--end of mythic+ segments

elseif (combatType == DETAILS_SEGMENTTYPE_DUNGEON_OVERALL) then
gameCooltip:AddLine(thisCombat:GetCombatName(), detailsFramework:IntegerToTimer(thisCombat:GetCombatTime()), 1, dungeonColor)
local combatIcon, categoryIcon = thisCombat:GetCombatIcon()
gameCooltip:AddIcon(combatIcon, "main", "left")
gameCooltip:AddStatusBar(100, 1, .5, .1, 0, 0.55, false, false, statusBarTexture)
local timeInCombat = thisCombat:GetCombatTime()

elseif (combatType == DETAILS_SEGMENTTYPE_DUNGEON_BOSS or combatType == DETAILS_SEGMENTTYPE_RAID_BOSS) then --if this is a boss encounter
--isn't anymore a sequence of mythic+ segments
mythicDungeonRunId = false
Expand Down Expand Up @@ -6968,7 +6975,11 @@ local buildSegmentTooltip = function(self, deltaTime)
end

if (not bSegmentInfoAdded) then
gameCooltip:AddLine(Loc["STRING_SEGMENT_ENEMY"] .. ":", enemy, 2, "white", "white")
if (thisCombat.combat_type == DETAILS_SEGMENTTYPE_DUNGEON_OVERALL) then
gameCooltip:AddLine(Loc["STRING_SEGMENT_ENEMY"] .. ":", thisCombat:GetCombatName(), 2, "white", "white")
else
gameCooltip:AddLine(Loc["STRING_SEGMENT_ENEMY"] .. ":", enemy, 2, "white", "white")
end

if (not thisCombat:GetEndTime()) then
if (Details.in_combat) then
Expand Down

0 comments on commit 7b34fc0

Please sign in to comment.