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

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).
*/
} 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;
}