So, I wrote this looting script for bounty hunter worlds that I run on my pures whilst I'm sleeping or at class. However, I get killed by targets frequently. My proposed solution is to run to the line when in combat then relog. But anybody in my bot's bracket can just hit me over and over to make me relog.
This leads me to the question is there a way to check if you have a target? If so, how?