From b89a550d94a80a718b4409e7993791ca0139c34e Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sun, 19 May 2024 14:03:33 -0300 Subject: [PATCH] Fix for the old time type '3' being deprecated and causing errors for returning players --- classes/class_damage.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/classes/class_damage.lua b/classes/class_damage.lua index 17380f18..4596247e 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -3905,6 +3905,13 @@ function damageClass:ToolTip_DamageDone (instancia, numero, barra, keydown) meu_tempo = instancia.showing:GetCombatTime() end + if (not meu_tempo) then + meu_tempo = instancia.showing:GetCombatTime() + if (Details.time_type == 3) then --time type 3 is deprecated + Details.time_type = 2 + end + end + --add actor spells for _spellid, _skill in pairs(ActorSkillsContainer) do ActorSkillsSortTable [#ActorSkillsSortTable+1] = {_spellid, _skill.total, _skill.total/meu_tempo}