let's lay out the facts ...
ex = whore, but since she is an ex, she has no commitment to you. The fact that she's smoking your "friend's" pole, that's just f'ing pathetic. You're giving her too much credit as a person.
friend = not really a friend. You can't do that. Period. End of discussion. He's only looking out for one person, himself. I'd beat his ass, put him in his place, and toss him on the shit pile where he belongs.
You don't need either of these people.