That really is not ok, sorry bro. This happened to a friend of mine too, and I saw what that did to him. It's so much worse than people realize. He nearly got kicked out of school over it even.
What saved him was the same thing that saved you: she was stupid enough to make a pattern out of the behaviour. That said it didn't make it all better, because he no longer trusted the people who abandoned him. The social dynamics of that group never recovered.
This after the EU has had to deal with Trump sanctioning individual judges and staffers