import { globalScene } from "#app/global-scene"; import type { BattlerIndex } from "#app/battle"; import { BattlerTagLapseType } from "#app/data/battler-tags"; import { PokemonPhase } from "./pokemon-phase"; export class MoveEndPhase extends PokemonPhase { constructor(battlerIndex: BattlerIndex) { super(battlerIndex); } start() { super.start(); const pokemon = this.getPokemon(); if (pokemon.isActive(true)) { pokemon.lapseTags(BattlerTagLapseType.AFTER_MOVE); } globalScene.arena.setIgnoreAbilities(false); this.end(); } }