From f1286394173b435bc42ee763d2d66f0e93351a2e Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 5 Jan 2023 14:28:06 +0100 Subject: [PATCH] cooldown-numbers: ignore empty duration calls --- mods/cooldown-numbers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/cooldown-numbers.lua b/mods/cooldown-numbers.lua index e507b7b..e893473 100644 --- a/mods/cooldown-numbers.lua +++ b/mods/cooldown-numbers.lua @@ -63,7 +63,7 @@ local function SetCooldown(this, start, duration, enable) if this.noCooldownCount then return end -- don't draw global cooldowns - if duration < 2 then + if not duration or duration < 2 then -- hide if already existing if this.cooldowntext then this.cooldowntext:Hide()