Well, thats interesting. I would have opted to just concede the battle, rather than making your pokemon faint itself, but whatever works for you. Meh.