From 391d5ad7620e4d9f99155aa3e5c23505809b3199 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Tue, 11 Jul 2023 19:01:51 -0300 Subject: [PATCH] Libs Updates --- classes/class_damage.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/classes/class_damage.lua b/classes/class_damage.lua index a0912551..165c868d 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -216,13 +216,13 @@ function Details:GetTimeInCombat(petOwner) --[[exported]] if (petOwner) then if (Details.time_type == 1 or not petOwner.grupo) then return self:Tempo() - elseif (Details.time_type == 2) then + elseif (Details.time_type == 2 or Details.time_type == 3) then return self:GetCombatTime() end else if (Details.time_type == 1) then return self:Tempo() - elseif (Details.time_type == 2) then + elseif (Details.time_type == 2 or Details.time_type == 3) then return self:GetCombatTime() end end @@ -463,10 +463,9 @@ end -- dps (calculate dps for actors) function damageClass:ContainerRefreshDps (container, combat_time) - local total = 0 - if (Details.time_type == 2 or not Details:CaptureGet("damage")) then + if (Details.time_type == 2 or not Details:CaptureGet("damage") or Details.time_type == 3) then for _, actor in ipairs(container) do if (actor.grupo) then actor.last_dps = actor.total / combat_time @@ -3313,7 +3312,7 @@ function damageClass:ToolTip_DamageDone (instancia, numero, barra, keydown) local meu_tempo if (Details.time_type == 1 or not self.grupo) then meu_tempo = self:Tempo() - elseif (Details.time_type == 2) then + elseif (Details.time_type == 2 or Details.time_type == 3) then meu_tempo = instancia.showing:GetCombatTime() end