From 70653c7dcfbdece4f83580e017715b48e902a493 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 14 May 2024 08:35:38 +0200 Subject: [PATCH] cooldown: only update own alpha if parent changed --- modules/cooldown.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/cooldown.lua b/modules/cooldown.lua index a4ca7b6b..371335de 100644 --- a/modules/cooldown.lua +++ b/modules/cooldown.lua @@ -23,7 +23,9 @@ pfUI:RegisterModule("cooldown", "vanilla:tbc", function () this.next = GetTime() + .1 -- fix own alpha value (should be inherited, but somehow isn't always) - this:SetAlpha(parent:GetAlpha()) + if this:GetAlpha() ~= parent:GetAlpha() then + this:SetAlpha(parent:GetAlpha()) + end if this.start < GetTime() then -- calculating remaining time as it should be