View Single Post
01-29-18, 09:48 PM   #4
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
You can run this after your XML:
Code:
for id = 1, MAX_BOSS_FRAMES do
	local frame = _G[("mBoss%uTargetFrame"):format(id)]
	if frame then
		RegisterStateDriver(frame, "visibility", ("[@boss%u,exists] show; hide"):format(id))
	end
end
  Reply With Quote