We all think like this (thanks a lot, every rom-com on the planet), but real life doesn't work like this. He was just horny, he knew you were into him, and he capitalized on an opportunity. As far as he’s concerned, it’s over now. He got what he wanted.
When people actually do the work to make changes in their lives and how they treat people, they put effort out into the universe in newly conscious, meaningful ways. We don't flippantly run into people at clubs and screw around with them. That's not mindful evolution. That's this guy acting just like had has in the past.
Now, about the inevitable awkwardness of you continuing to run into him for as long as your friend is dating his bestie: take the high road. I’m not saying you should talk to him, hug him, or bro down. He gets no more of your energy from here on out, OK? That means no positive energy, and no negative energy either. You do not need to be texting him, berating him in public, or causing a scene.