Fix enemy trainers being able to switch out during multi-turn moves
This commit is contained in:
1 parent
8c6f77f4c0
commit
eb6c3ba83f
1 file changed
+1
-1
+1
-1
@@ -1562,7 +1562,7 @@ export class EnemyCommandPhase extends FieldPhase {
|
||||
|
||||
const trainer = this.scene.currentBattle.trainer;
|
||||
|
||||
if (trainer) {
|
||||
if (trainer && !enemyPokemon.getMoveQueue().length) {
|
||||
const opponents = enemyPokemon.getOpponents();
|
||||
|
||||
const trapTag = enemyPokemon.findTag(t => t instanceof TrappedTag) as TrappedTag;
|
||||
|
||||
Reference in new issue
Block a user