You should be happy for someone who is promoted.
Pat was hoping that he'd get a promotion, but he found out that his coworker Jim got it instead.
Pat wants to say something to Jim.
Pat tells Jim that he deserved a promotion and that he wasn't surprised.
Pat tells Jim that Pat deserved the promotion more than he did.
Jim's confidence grows, and he grows more fond of Pat.
Jim likes Pat less and avoids him from now on.