From 6e7b191d3d711a384dbe15423a6d3b2f64fcfc7d Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 19 Sep 2016 00:37:48 +0200 Subject: [PATCH] fix bad cooldown displays --- modules/cooldown.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/cooldown.lua b/modules/cooldown.lua index 03068bce..9685a16a 100644 --- a/modules/cooldown.lua +++ b/modules/cooldown.lua @@ -1,7 +1,6 @@ pfUI:RegisterModule("cooldown", function () function CooldownFrame_SetTimer(this, start, duration, enable) if ( start > 0 and duration > 0 and enable > 0) then - this.start = start; this.duration = duration; this.stopping = 0; @@ -28,8 +27,8 @@ pfUI:RegisterModule("cooldown", function () this:Show(); else this:Hide() + if this.cd then this.cd:Hide() end end - this:SetAlpha(0) end