If this did occur there would have to be a warning or 2 informing you that the attack will hit an alliance mate or friendly alliance.