Seeking help with Yanfly Action Sequence "target conditional"

Someone in the past here helped me set up my items so that they can have animations by having the user behave differently when using an item on the user or another party member, they provided me with this code:
Spoiler: the sequence portion
if target==user (this line specifically)
animation 351: user
ani wait: 6
animation 353: user
else
animation 351: user
ani wait: 6
animation 352: target
end


One of the last molehills in my project currently is that I've come to massively alter the anchors of enemy sprites so that they can be positioned as desired, but this comes with the problem that if a party member is "Charmed/Confused" and attacks a fellow party member they will be massively mispositioned... So my question is if someone would know if there is a word to use to change my attack command so that "if target==actor" for example (if it's possibly even that simple I suppose I should actually try that) the actor would shift to a different coordinate to align with the party member?
So if you're just asking about the is actor conditional, there's the if (target.isActor())
@rpgLord69
they reposted the question in another thread and got it sorted out there but didnt get this one closed

Original thread: https://forums.rpgmakerweb.com/threads/seeking-help-with-yanfly-action-sequence-target-conditional.175142/