From 40edb70fb93620370400c622804dcabf87eb5a03 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 20 Sep 2020 12:48:21 +0200 Subject: [PATCH] unitframes: save old icon to force update on change --- api/unitframes.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index 06b5b85c..bda1257c 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1236,6 +1236,11 @@ function pfUI.uf:RefreshUnit(unit, component) unit.buffs[i].texture:SetTexture(texture) if texture then + if unit.buffs[i].oldtexture ~= texture then + unit.buffs[i]:Hide() + end + + unit.buffs[i].oldtexture = texture unit.buffs[i]:Show() if stacks > 1 then