Fix enemy trainers being able to switch out during multi-turn moves

pull/16/head
Flashfyre 2024-03-08 18:38:04 -05:00
parent 8c6f77f4c0
commit eb6c3ba83f
1 changed files with 1 additions and 1 deletions

View File

@ -1562,7 +1562,7 @@ export class EnemyCommandPhase extends FieldPhase {
const trainer = this.scene.currentBattle.trainer; const trainer = this.scene.currentBattle.trainer;
if (trainer) { if (trainer && !enemyPokemon.getMoveQueue().length) {
const opponents = enemyPokemon.getOpponents(); const opponents = enemyPokemon.getOpponents();
const trapTag = enemyPokemon.findTag(t => t instanceof TrappedTag) as TrappedTag; const trapTag = enemyPokemon.findTag(t => t instanceof TrappedTag) as TrappedTag;