From c6003f08f49fb2b997b857d76df25c7c995d77fa Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 8 Sep 2017 19:32:37 +0200 Subject: [PATCH] unitframes: update alpha on disabled rangefading --- api/unitframes.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index e5487971..4a0b9755 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -286,6 +286,13 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick) end end end + else + if this:GetAlpha() ~= 1 then + this:SetAlpha(1) + if this.config.portrait == "bar" then + this.portrait:SetAlpha(pfUI_config.unitframes.portraitalpha) + end + end end if not this.cache then return end