Skip to content

Commit

Permalink
Changed conditional to actually consider the wave index. (#4899)
Browse files Browse the repository at this point in the history
Co-authored-by: frutescens <info@laptop>
  • Loading branch information
frutescens and frutescens authored Nov 17, 2024
1 parent 1867ac4 commit 6b58d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/ability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6b58d51

Please sign in to comment.