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)