Fix for the old time type '3' being deprecated and causing errors for returning players

This commit is contained in:
Tercio Jose
2024-05-19 14:03:33 -03:00
parent 50c516aee8
commit b89a550d94
+7
View File
@@ -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}