Because of the same incident, he was released on bail pending trial, and then his friend committed another crime. Will he be implicated? Get a lawyer in!
Your friend A can only be responsible for the previous beating behavior, and has nothing to do with what others commit again. Even if your friend A is going to jail, it's a beating before usury. Being released on bail at that time means that the beating is not serious and the sentence will not last long. As long as the guilty attitude is good, maybe you can get a suspended sentence. If you don't have to do anything, just go through legal procedures. Don't worry too much.