Fundamental Attribution Error
We attribute the reason of our own(or of our friends) failures to the environment, but the failures of others(or our enemies) to their character.
Eg. We were late because there was a huge traffic jam - but the other person was late because they are tardy.
The context or the person's situation is a better predictor for their behavior.