I use this code to test my frames:
Code:
local frames = {
oUFPhanxBoss1,
oUFPhanxBoss2,
oUFPhanxBoss3,
oUFPhanxBoss4,
oUFPhanxBoss5,
}
function MakeFakes()
for _, f in ipairs(frames) do
if not f.__realunit then
f.__realunit = f:GetAttribute("unit") or f.unit
f:SetAttribute("unit", "player")
f.unit = "player"
f:Show()
end
end
end
function UnmakeFakes()
for _, f in ipairs(frames) do
if f.__realunit then
f:SetAttribute("unit", f.__realunit)
f.unit = f.__realunit
f.__realunit = nil
f:Hide()
end
end
end
Use "/run MakeFakes()" and "/run UnmakeFakes()" in-game to toggle.
However, this won't help you if you're trying to test the actual
bossN unitIDs... if you need to do that, you'll have to find a low-level encounter with multiple bosses where you can just stand there and make changes and reload your UI while the bosses are hitting you.