2024-09-07 21:37:37 -07:00
|
|
|
import BattleScene from "#app/battle-scene";
|
|
|
|
import { BattlerIndex } from "#app/battle";
|
|
|
|
import { BattlerTagLapseType } from "#app/data/battler-tags";
|
2024-08-19 03:23:52 +01:00
|
|
|
import { PokemonPhase } from "./pokemon-phase";
|
|
|
|
|
|
|
|
export class MoveEndPhase extends PokemonPhase {
|
|
|
|
constructor(scene: BattleScene, battlerIndex: BattlerIndex) {
|
|
|
|
super(scene, battlerIndex);
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
super.start();
|
|
|
|
|
|
|
|
const pokemon = this.getPokemon();
|
|
|
|
if (pokemon.isActive(true)) {
|
|
|
|
pokemon.lapseTags(BattlerTagLapseType.AFTER_MOVE);
|
|
|
|
}
|
|
|
|
|
|
|
|
this.scene.arena.setIgnoreAbilities(false);
|
|
|
|
|
|
|
|
this.end();
|
|
|
|
}
|
|
|
|
}
|