View Single Post
07-17-16, 05:02 PM   #2
ceylina
A Wyrmkin Dreamwalker
Join Date: Oct 2014
Posts: 50
Originally Posted by Tercioo View Post
UnitDetailedThreatSituation isn't working with the unitid "nameplatepet".
Reported that several times during the demon invasion testing. I guess they haven't got around to it. Funny seeing how many times that has been posted in the bug forum.

Perhaps they need to just bring it online with other parts of FrameXML/CompactUnitFrame.lua


Code:
function CompactUnitFrame_IsOnThreatListWithPlayer(unit)
	local _, threatStatus = UnitDetailedThreatSituation("player", unit);
	return IsOnThreatList(threatStatus);
end
Perhaps should be

Code:
function CompactUnitFrame_IsOnThreatListWithPlayer(frame)
	local _, threatStatus = UnitDetailedThreatSituation("player", frame.displayedUnit);
	return IsOnThreatList(threatStatus);
end