From 65e108556af73592373d89c76ac9c7cd77704050 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Thu, 21 Nov 2024 15:41:32 -0300 Subject: [PATCH] Fixed class_damage.lua:307: attempt to compare nil with number --- classes/class_utility.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/class_utility.lua b/classes/class_utility.lua index ef8b4a1d2..28dc4f5b2 100644 --- a/classes/class_utility.lua +++ b/classes/class_utility.lua @@ -1829,7 +1829,9 @@ function atributo_misc:ToolTipDebuffUptime(instancia, numero, barra) local _combat_time = instancia.showing:GetCombatTime() for _spellid, _tabela in pairs(minha_tabela) do - debuffs_usados [#debuffs_usados+1] = {_spellid, _tabela.uptime} + if (_tabela.uptime and _tabela.uptime > 0) then + debuffs_usados [#debuffs_usados+1] = {_spellid, _tabela.uptime} + end end table.sort(debuffs_usados, Details.Sort2)