From cb1e4513233e8a24faa32a46d2aba5205423d4ac Mon Sep 17 00:00:00 2001 From: frutescens Date: Sun, 17 Nov 2024 12:21:20 -0800 Subject: [PATCH] Added check for MEs + Documentation --- src/data/ability.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 0572b041c95..76879a2116d 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -4951,9 +4951,10 @@ class ForceSwitchOutHelper { } /** * 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 */ } else { - if (!pokemon.scene.currentBattle.waveIndex || pokemon.scene.currentBattle.waveIndex % 10 === 0) { + if (!pokemon.scene.currentBattle.waveIndex || pokemon.scene.currentBattle.waveIndex % 10 === 0 || pokemon.scene.currentBattle.isBattleMysteryEncounter()) { return false; }