You don't need to make it so hard for yourself by grouping Enemies and Friendlies into one Family then trying to separate them out. Just reference the enemies in an Enemies family if there are multiple enemy units and Friendlies in their family, otherwise you're going to constantly stumble across weird problems with the picking that need investigation. Your picking here doesn't really reference the Unit correctly, the isFriendly condition is referencing the Unit that is passing the range, so itself, and not the Unity that was just passed. If you have separate families as suggested then you can reference them much easier such as if Friendly X > Enemy then Friendly set anim etc.