From 74f987ab95c8bb2eb569ca0dba59baed604e3867 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Fri, 1 Dec 2023 22:14:36 -0300 Subject: [PATCH] Fixed dps showing wrong numbers when the combat isn't the current one --- boot.lua | 4 ++-- classes/class_damage.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boot.lua b/boot.lua index 5aaa5f938..1b37a680e 100644 --- a/boot.lua +++ b/boot.lua @@ -13,8 +13,8 @@ local addonName, Details222 = ... local version, build, date, tocversion = GetBuildInfo() - Details.build_counter = 12096 - Details.alpha_build_counter = 12096 --if this is higher than the regular counter, use it instead + Details.build_counter = 12097 + Details.alpha_build_counter = 12097 --if this is higher than the regular counter, use it instead Details.dont_open_news = true Details.game_version = version Details.userversion = version .. " " .. Details.build_counter diff --git a/classes/class_damage.lua b/classes/class_damage.lua index 03c12628e..6d96efa8f 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -2736,7 +2736,7 @@ function damageClass:RefreshLine(instanceObject, lineContainer, whichRowLine, ra percentString = format("%.1f", self[keyName] / instanceObject.top * 100) end - local currentCombat = Details:GetCurrentCombat() + local currentCombat = instanceObject:GetCombat() if (currentCombat:GetCombatType() == DETAILS_SEGMENTTYPE_MYTHICDUNGEON_OVERALL) then if (Details.mythic_plus.mythicrun_time_type == 1) then