Originally Posted by sid67
Is there any way to check if your last target is your current target? This is for mobs, not other players, so using UnitName won't work because the mobs often have the same name.
I suspect the answer is 'no', but I thought I would ask before trying to think up a work around. I wish it were as simple as UnitIsUnit("lasttarget","target").
|
If you receive a PLAYER_TARGET_CHANGED event, then your target has changed. But I suspect this is not what you mean.
You're probably refering to losing a target, then re-selecting the same target again? In which case, the best you can do is check it's name.
If you were really desperate, you could check your raid for who has the same target as you. Scan for UnitIsUnit("raidXXtarget", "target") (XX = 1 to 40). Store their id "raidXX", then re-check this when you pickup a target again.
But this is ugly and time-consuming, and you can't guarentee that they'll keep their target. So don't do this. It's just an indication of the nearest possible answer to your question