Keep in mind that ranged weapons are designed to “fire into a bulk of enemies” so if you miss you still got a pretty high chance to hit some other foe.
If you like to snipe a enemy while LoS is blocked by your own men, you better avoid the risk.
Working as intended imo, caus logic.