What would it take for you to violate your moral code when it came to protecting a close friend of the opposite gender?

Situation in question:

male friend went against his moral code to protect me (female). He said he knew it was wrong to indirectly cause the person who hurt me to be punished, but he could not let it happen to me because I'm a "bro".
You love them
You have feelings for them beyond friendship
Honor
Impulsive
Select gender and age to cast your vote:
Updates
+1 y
He punched someone in the face for being mean to me after telling me he believes it morally wrong to resort to violence, as it gives you bad karma.
What would it take for you to violate your moral code when it came to protecting a close friend of the opposite gender?
Post Opinion