I'm assuming you were invited? I'm sure X's cousin knows about the restraining order, in which case I hope he didn't invite OW.
It would pretty weird of your X to bring OW (now that he knows you'll be there, too) when he's been hitting on you so much lately. Unless he wants to make you jealous... good luck with that, buddy.