When I play as an archer, I keep the enemy in clear sight. If there is an ally in the way, I do not try to hit the enemy he's fighting. If I accidentally hit an ally, I make sure to apologize. Anyone who plays an archer should do the same, because it's just common sense.
Not to single out the OP, but I cannot believe such a trivial and common occurrence in cRPG has a thread.