Changed conditional to actually consider the wave index.

This commit is contained in:
frutescens 2024-11-17 12:10:10 -08:00
parent 1867ac4a9e
commit 6f66515b70

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;
}