mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-06 23:49:26 +02:00
Show battle end phase in wild battle if the last pokemon fled.
I don't know about you guys but if my enemy fled the field I'd count that as a win. Simply skipping to next battle is really infuriating when the one pokemon with this ability has a really strong priority move. Especially when it shows up right before an important fight.
This commit is contained in:
parent
8b304adf14
commit
db9e65b8a8
@ -6309,6 +6309,9 @@ class ForceSwitchOutHelper {
|
||||
if (globalScene.currentBattle.double && !isNullOrUndefined(allyPokemon)) {
|
||||
globalScene.redirectPokemonMoves(switchOutTarget, allyPokemon);
|
||||
}
|
||||
else{
|
||||
globalScene.phaseManager.pushNew("BattleEndPhase", true);
|
||||
}
|
||||
}
|
||||
|
||||
if (!allyPokemon?.isActive(true)) {
|
||||
|
Loading…
Reference in New Issue
Block a user