Someone who remains a friend only when things are going well but abandons others during times of trouble or difficulty.