The solution is obvious: The two groups would merge into one gestalt entity, the Red Shirted Stormtroopers. Whenever they fired, the shot would bounce back and kill them instantly.