To identify if a nameplate's unit is targeting you, you can use the UnitIsUnit function like UnitIsUnit("Nameplate1-Target", "player"), which will check whether the target of "Nameplate1" is the player.
Just use the unitID of the nameplate that you're checking against.
|