View Single Post
04-21-21, 05:28 AM   #2
L3n1n
A Fallenroot Satyr
 
L3n1n's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 20
You can use this code:

Code:
hooksecurefunc("CompactUnitFrame_UpdateVisible", function(frame)
	if ( UnitExists(frame.unit) or UnitExists(frame.displayedUnit) ) and frame.unit == "player" then
		CompactUnitFrame_ClearWidgetSet(frame)
		frame:Hide()
		frame.unitExists = false
	end
end)
  Reply With Quote