idiom
fair-weather friend
una persona que solo es tu amigo cuando las cosas van bien
Meaning
a person who is only your friend when things are good
Example
A **fair-weather friend** will leave you when things get tough.
Un **amigo de buen tiempo** te dejará cuando las cosas se pongan difíciles.