Target "any ally but user" with Yanfly plugins?

Trying to create an ability that will allow the user to target any one ally EXCEPT the actor using said ability, using Yanfly's target and selection plugins.

I managed to get...

<Custom Select Condition>
condition = (user != target);

</Custom Select Condition>


This allows the skill to target any one actor but the user - but that includes enemies too. I want it to be the above, plus ONLY allies.

I'm assuming there's a simple way to do this that I've just missed?
Try this~
Code:
<Custom Select Condition>
condition = (user !== target) && (user.isActor() === target.isActor());
</Custom Select Condition>

Original thread: https://forums.rpgmakerweb.com/threads/target-any-ally-but-user-with-yanfly-plugins.110584/