Changed conditional to actually consider the wave index. (#4899)

Co-authored-by: frutescens <info@laptop>
This commit is contained in:
Mumble 2024-11-17 12:19:23 -08:00 committed by GitHub
parent 1867ac4a9e
commit 6b58d51ea2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -4953,7 +4953,7 @@ class ForceSwitchOutHelper {
* For wild Pokémon battles, the Pokémon will flee if the conditions are met (waveIndex and double battles). * For wild Pokémon battles, the Pokémon will flee if the conditions are met (waveIndex and double battles).
*/ */
} else { } else {
if (!pokemon.scene.currentBattle.waveIndex && pokemon.scene.currentBattle.waveIndex % 10 === 0) { if (!pokemon.scene.currentBattle.waveIndex || pokemon.scene.currentBattle.waveIndex % 10 === 0) {
return false; return false;
} }