From 8678f611a039031c3a5cdead46bcb103100a2c13 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Fri, 21 Jan 2022 19:36:56 -0300 Subject: [PATCH] Fixed another instance of Division by Zero on PTR --- core/parser.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/parser.lua b/core/parser.lua index a6117ffc..4aa0b40b 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -548,7 +548,9 @@ end end - _detalhes:Msg ("|cFFFFBB00Your Best Score|r:", _detalhes:ToK2 ((value) / combatTime) .. " [|cFFFFFF00Guild Rank: " .. rank .. "|r]") --> localize-me + if (value and combatTime and value > 0 and combatTime > 0) then + _detalhes:Msg ("|cFFFFBB00Your Best Score|r:", _detalhes:ToK2 ((value) / combatTime) .. " [|cFFFFFF00Guild Rank: " .. rank .. "|r]") --> localize-me + end if ((not combatTime or combatTime == 0) and not _detalhes.SyncWarning) then _detalhes:Msg ("|cFFFF3300you may need sync the rank within the guild, type '|cFFFFFF00/details rank|r'|r") --> localize-me