mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-10-26 05:55:53 +01:00
24 lines
599 B
TypeScript
24 lines
599 B
TypeScript
import BattleScene from "#app/battle-scene.js";
|
|
import { BattlerIndex } from "#app/battle.js";
|
|
import { BattlerTagLapseType } from "#app/data/battler-tags.js";
|
|
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();
|
|
}
|
|
}
|