From 5180459d67503a2bd07d7065813677a2d014e7e1 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Tue, 11 Jul 2023 19:05:06 -0300 Subject: [PATCH] Using effective time when displaying tooltips information --- classes/class_damage.lua | 2 +- classes/class_instance.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/class_damage.lua b/classes/class_damage.lua index 165c868d..9b3fbfd6 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -2662,7 +2662,7 @@ function damageClass:RefreshLine(instance, lineContainer, whichRowLine, rank, to local currentCombat = Details:GetCurrentCombat() --calculate the actor dps - if ((Details.time_type == 2 and self.grupo) or not Details:CaptureGet("damage") or instance.segmento == -1) then + if ((Details.time_type == 2 and self.grupo) or not Details:CaptureGet("damage") or instance.segmento == -1 or Details.time_type == 3) then if (instance.segmento == -1 and combat_time == 0) then local actor = currentCombat(1, self.nome) if (actor) then diff --git a/classes/class_instance.lua b/classes/class_instance.lua index c6be3e03..bbeeb9a7 100644 --- a/classes/class_instance.lua +++ b/classes/class_instance.lua @@ -3273,7 +3273,7 @@ local function GetDpsHps (_thisActor, key) if (_thisActor [keyname]) then return _thisActor [keyname] else - if ((Details.time_type == 2 and _thisActor.grupo) or not Details:CaptureGet("damage")) then + if ((Details.time_type == 2 and _thisActor.grupo) or not Details:CaptureGet("damage") or Details.time_type == 3) then local dps = _thisActor.total / _thisActor:GetCombatTime() _thisActor [keyname] = dps return dps @@ -3788,7 +3788,7 @@ function Details:envia_relatorio (linhas, custom) end --effective ou active time - if (Details.time_type == 2) then + if (Details.time_type == 2 or Details.time_type == 3) then linhas[1] = linhas[1] .. " [" .. segmentTime .. " EF]" else linhas[1] = linhas[1] .. " [" .. segmentTime .. " AC]"