Fixed dps showing wrong numbers when the combat isn't the current one

This commit is contained in:
Tercio Jose
2023-12-01 22:14:36 -03:00
parent f90a094e54
commit 74f987ab95
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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