You dont want to pase the unit. I suggest making some sort of ability, such as a spike armor varient with a stun buff that only targets allied units, and skip using triggers altogether.
As for that condition listed above, its under player comparison.
-VGsatomi