Well, when the pokemons faint, they appear at the pokemon center (that's one mistake we should fix, they should be kept in the inventory) but the REAL bug is that, when fainted, pokemons can still send out by the trainer. I think we should fix both problems.