fair weather friend

A fair weather friend is someone who only seems to come around and act likes a friend when everything is pleasant and going well for you. This may be someone who takes advantage of your good fortune because he or she knows they can get something from you, while others simply only want to be around people who are positive, happy and pleasant. Fair weather friends are scarce when you have troubles in your life or are going through problems.