mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Apply suggestions from code review
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
This commit is contained in:
parent
ee4c569d6a
commit
ad4d8f0a74
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user