From 09d86acb1da76af8a305ac8675c02eadd7613c5a Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 28 Aug 2016 22:08:35 +0200 Subject: [PATCH] fix cooldown display --- modules/cooldown.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/cooldown.lua b/modules/cooldown.lua index 5be3dc25..67806967 100644 --- a/modules/cooldown.lua +++ b/modules/cooldown.lua @@ -38,7 +38,7 @@ pfUI:RegisterModule("cooldown", function () local remaining = this.duration - (GetTime() - this.start) -- disable GCD notify - if ( remaining >= 1.5 ) then + if (remaining >= 0 and this.duration > 1.5) then this.cd:Show() local unit = "" if remaining > 99 then @@ -51,10 +51,7 @@ pfUI:RegisterModule("cooldown", function () unit = "h" end - this.cd.text:SetText(floor(remaining)..unit) - --elseif ( remaining >= .5 ) then - -- this.cd:Show() - -- this.cd.text:SetText("") + this.cd.text:SetText(ceil(remaining)..unit) else this:Hide(); this.cd:Hide()