cooldown: only update own alpha if parent changed

This commit is contained in:
shagu
2024-05-14 08:35:38 +02:00
parent 5790ef71b6
commit 70653c7dcf
+3 -1
View File
@@ -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