Edit for context.

So there is this girl, not too attractive, but smart and I like her. I know it's not likely I'm going to get with her and I dick of a former friend who knows I like her is chasing her as well.

So simply how do I break oneitis?