The only way I can think of is check the tooltip for a mouseover unit when it pops up and query it for a UnitGUID(). This is if the game triggers the tooltip with tooltip:SetUnit() instead of just tooltip:SetText() internally. It does this with some objects, but not all.
You may also check on events such as UPDATE_MOUSEOVER_UNIT.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
|
Last edited by SDPhantom : 04-29-18 at 06:08 PM.
|