Another div by 0 error when not in arena

This commit is contained in:
Lynn
2024-06-08 14:06:30 +02:00
parent 0ee3f1a511
commit 0940294067
+5 -2
View File
@@ -759,7 +759,10 @@ function Details:CreateCurrentDpsFrame(parent, name)
local dpsBarFrame = DetailsArenaDpsBars.splitBar
--a percenntagem na barra esta sendo setada corretamente, porem a animação não esta funcrtionando ainda
local percentValue = teamGreenDps / totalDamage
local percentValue = 0
if (totalDamage > 0) then
percentValue = teamGreenDps / totalDamage
end
percentValue = Saturate(percentValue)
--print(percentValue)
@@ -963,4 +966,4 @@ function DetailsTestSplitBar()
loopTime = 0.1
end
end)
end
end