pagefaultgames / pokerogue

A browser based Pokémon fangame heavily inspired by the roguelite genre.
https://pokerogue.net
GNU Affero General Public License v3.0
4.44k stars 1.79k forks source link

Player and pokemon list can sometimes overlap with battle sprites #894

Closed PLMMJ-FH closed 2 months ago

PLMMJ-FH commented 5 months ago

So I was playing casually and one of my mons (I don't remember which) died from poison at the end of a battle, but then I revived it with shop items. The game had me switch out anyway and then my player sprite persisted into battles. This only ended once I beat the boss. PokerogueMayBeBroken

PLMMJ-FH commented 5 months ago

Can confirm this only happens if the trainer sprite comes out.

PLMMJ-FH commented 5 months ago

My idea of the logic, the game wants you to switch out to fight, but the fight is already over. so it doesn't correctly recall the mon it told you to send out. If you proceed to a wild battle then it just pretends nothing happened. Also you can't send back in a fainted mon even if it was revived before you got to the switch screen

knispeja commented 5 months ago

Reproduced this locally by fainting with poison then reviving the mon. Technically the trainer sprite doesn't overlap in my example, but I think that's only because it wasn't followed by a trainer battle. I think this is the same bug:

https://github.com/pagefaultgames/pokerogue/assets/9343160/3261ab22-37c2-4b69-b171-8f029ce1b67f

flx-sta commented 2 months ago

Duplicate of #222