mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 20:40:50 +00:00
unitframes: do not proceed on hidden frames
This commit is contained in:
@@ -573,6 +573,8 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
if not unit.cache then unit.cache = {} end
|
if not unit.cache then unit.cache = {} end
|
||||||
if not unit.id then unit.id = "" end
|
if not unit.id then unit.id = "" end
|
||||||
|
|
||||||
|
if not unit:IsShown() then return end
|
||||||
|
|
||||||
-- Raid Icon
|
-- Raid Icon
|
||||||
if unit.raidIcon and ( component == "all" or component == "raidIcon" ) then
|
if unit.raidIcon and ( component == "all" or component == "raidIcon" ) then
|
||||||
local raidIcon = GetRaidTargetIndex(unit.label .. unit.id)
|
local raidIcon = GetRaidTargetIndex(unit.label .. unit.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user