SUBREDDIT: r/AskReddit
TITLE: Friend assaulted - helped him, am I in the wrong?
POST: Hopefully this is the right section, as wasn't sure where to put this.

My best friend was assaulted by 1 male, and I was about 10m away with another friend. The guy hit my friend in the face 4-5 times, I realised my friend did not hit him back and was taking every blow to the face. I then ran over as fast as I could and attempted to hit the guy to stop him hitting my friend. The punch caused little to no/damage (im not a fighter xD) and then he began hitting me.

He yelled you "pakie fuck" and began pounding me (im of indian origin), I tried to punch him back a few times, it then broken up by the other person that was with him (A friend of his that didn't get inolved in the fighting but broke it up).

I am worried as my friend is pressing charges, as his jaw was severely broken and he was hospitalised. The guy who assaulted my friend said that as he is pressing charges I will be prosecuted/get in trouble as well for hitting him. (I know the guy who assaulted him sort of [hes not a friend or anything])

Police just rang me and said this will be going to court. The guy is out on bail but he told the police he only hit me because I hit him (I hit him once/twice and he hit me 9-10 times) and that he said he wasn't racist.
TL;DR: 
Friend assaulted, I punched the guy assaulting him, will I get in trouble for this. This is in the UK.