View Single Post
10-31-18, 01:38 AM   #5
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
You can't know if all enemies are targeting you. Only those with a valid unitid. That means you iterate over your group, over their targets and then their targets. Only those unitids are valid and can be checked. If nobody you know targets a unit you can't know it's target.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote