Another div by 0 error when not in arena
This commit is contained in:
@@ -759,7 +759,10 @@ function Details:CreateCurrentDpsFrame(parent, name)
|
|||||||
local dpsBarFrame = DetailsArenaDpsBars.splitBar
|
local dpsBarFrame = DetailsArenaDpsBars.splitBar
|
||||||
|
|
||||||
--a percenntagem na barra esta sendo setada corretamente, porem a animação não esta funcrtionando ainda
|
--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)
|
percentValue = Saturate(percentValue)
|
||||||
|
|
||||||
--print(percentValue)
|
--print(percentValue)
|
||||||
@@ -963,4 +966,4 @@ function DetailsTestSplitBar()
|
|||||||
loopTime = 0.1
|
loopTime = 0.1
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user