This commit is contained in:
Natthapawn Hongcharoen 2025-08-05 00:57:37 -05:00 committed by GitHub
commit 03015748f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6309,6 +6309,9 @@ class ForceSwitchOutHelper {
if (globalScene.currentBattle.double && !isNullOrUndefined(allyPokemon)) { if (globalScene.currentBattle.double && !isNullOrUndefined(allyPokemon)) {
globalScene.redirectPokemonMoves(switchOutTarget, allyPokemon); globalScene.redirectPokemonMoves(switchOutTarget, allyPokemon);
} }
else{
globalScene.phaseManager.pushNew("BattleEndPhase", true);
}
} }
if (!allyPokemon?.isActive(true)) { if (!allyPokemon?.isActive(true)) {