Requirements for the bug to happen:
- Have only one Pokemon able to battle
- Win the battle
- But faint yourself to recoil damage
What happens:
Your Pokemon are instantly healed and you get to stay where you are, however after taking a few steps you get teleported to the Pokemon center.
(I've only tested this while surfing, which resulted in me surfing inside the Pokemon center for a single step.)
Now this might seem to be a minor bug but I can easily see it being abusable.