You're the opposite of a fair-weather friend. You're a... shit-weather friend.
Because one minute they all love you, the next thing you know, you're in front of a courthouse dancing on top of a car just trying to figure out what the fuck happened to you.