By Ragnarok.Martel 2021-04-13 21:55:19
I don't believe there is any way to actively and directly get the mob's target. It's just not something that the client gets access to.
You can get it via assist, but well, I don't suggest spamming assist packets at the level of frequency an addon or GS function would require to do this. It would be... very detectable by SE.
Could parse the log to see what the last target the mob hit was. But this would mean that the mob would always have to hit you at least once before you would swap gear. Which sucks. And there'd be the same delay after it changed target to someone else.
Or you could jury rig something based on the direction the mob is facing, but that can give false positives if there are multiple players on the same heading from the mobs. And some mobs don't turn to face when they decide to take a chunk outta you.
So, TLDR: No.