diff --git a/frames/window_options2_sections.lua b/frames/window_options2_sections.lua index 4737f58d..0dcf6c52 100644 --- a/frames/window_options2_sections.lua +++ b/frames/window_options2_sections.lua @@ -6879,6 +6879,16 @@ do desc = "When the run is done, make an overall segment.", }, + {--overall only with bosses + type = "toggle", + get = function() return Details.mythic_plus.make_overall_boss_only end, + set = function(self, fixedparam, value) + Details.mythic_plus.make_overall_boss_only = value + end, + name = "Overall Segment Boss Only", + desc = "Only add boss segments on the overall.", + }, + {--merge trash type = "toggle", get = function() return Details.mythic_plus.merge_boss_trash end, diff --git a/functions/mythicdungeon.lua b/functions/mythicdungeon.lua index fdd9e4d2..16edc786 100644 --- a/functions/mythicdungeon.lua +++ b/functions/mythicdungeon.lua @@ -94,6 +94,11 @@ function DetailsMythicPlusFrame.MergeSegmentsOnEnd() local thisCombat = segmentHistory[i] if (thisCombat and thisCombat.is_mythic_dungeon_run_id == Details.mythic_dungeon_id) then local canAddThisSegment = true + if (_detalhes.mythic_plus.make_overall_boss_only) then + if (not thisCombat.is_boss) then + canAddThisSegment = false + end + end if (canAddThisSegment) then newCombat = newCombat + thisCombat diff --git a/functions/profiles.lua b/functions/profiles.lua index a2dde70c..3ad287bd 100644 --- a/functions/profiles.lua +++ b/functions/profiles.lua @@ -1505,6 +1505,7 @@ local default_global_data = { merge_boss_trash = true, boss_dedicated_segment = true, make_overall_when_done = true, + make_overall_boss_only = false, show_damage_graphic = true, reverse_death_log = false, @@ -1901,6 +1902,7 @@ function Details:ImportProfile (profileString, newProfileName, bImportAutoRunCod mythicPlusSettings.merge_boss_trash = true mythicPlusSettings.boss_dedicated_segment = true mythicPlusSettings.make_overall_when_done = true + mythicPlusSettings.make_overall_boss_only = false mythicPlusSettings.show_damage_graphic = true mythicPlusSettings.reverse_death_log = false mythicPlusSettings.delay_to_show_graphic = 10