Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix persisting sleep animation when sprite is already loaded
Ensure that a Pokémon's animation speed is reset properly after saving and quitting. Previously, if a Pokémon was put to sleep, which slows its framerate, saving and quitting would result in the slower framerate persisting even though the Pokémon was no longer asleep. This fix adds an else condition to reset the frameRate to 12 if the sprite is already loaded upon resuming the game. Fixes #4465
- Loading branch information