Apply suggestions from code review

Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
This commit is contained in:
Mumble 2024-11-17 12:48:11 -08:00 committed by GitHub
parent ee4c569d6a
commit ad4d8f0a74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4951,7 +4951,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).
* It will not flee if it is a wave 10x boss battle or a battle in a Mystery Encounter * It will not flee if it is a Mystery Encounter with fleeing disabled (checked in `getSwitchOutCondition()`) or if it is a wave 10x wild boss
*/ */
} else { } else {
if (!pokemon.scene.currentBattle.waveIndex || pokemon.scene.currentBattle.waveIndex % 10 === 0) { if (!pokemon.scene.currentBattle.waveIndex || pokemon.scene.currentBattle.waveIndex % 10 === 0) {