mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 17:26:11 +00:00
Changed conditional to actually consider the wave index. (#4899)
Co-authored-by: frutescens <info@laptop>
This commit is contained in:
parent
1867ac4a9e
commit
6b58d51ea2
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user