Friendly fire doesn't matter. FF damage is significantly discounted vs. normal damage so it's almost always worth it to slash 4 teammates for the chance of chopping one enemy. In other words, in a melee where enemy movement is unpredictable, always use the horizontal slash (just keep hitting lmb). Don't bother doing the vertical slash or the stabs - they're easy to miss with.