Im leaning more towards weather or not the party member is in your line of sight. Since we're still able to target something even though it's not in healing / attack range