Skip to content

Commit

Permalink
Fixed class_damage.lua:307: attempt to compare nil with number
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Nov 21, 2024
1 parent a5d3eac commit 65e1085
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/class_utility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 65e1085

Please sign in to comment.