From bbbef96d3e9c7e2ddd40554307be1517313fff1d Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 14 May 2017 15:47:46 +0200 Subject: [PATCH] unitframes: do not proceed on hidden frames --- api/unitframes.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index 8baeb0b6..96ebd52c 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -573,6 +573,8 @@ function pfUI.uf:RefreshUnit(unit, component) if not unit.cache then unit.cache = {} end if not unit.id then unit.id = "" end + if not unit:IsShown() then return end + -- Raid Icon if unit.raidIcon and ( component == "all" or component == "raidIcon" ) then local raidIcon = GetRaidTargetIndex(unit.label .. unit.id)