mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-11 10:45:34 +00:00
- remove any `.js` extension imports - remove unncessary dynamic imports of `modifier.ts` file. The file was being imported statically & dynamically. Made it pure static - increase vite chunk-size warning limit Co-authored-by: Mumble <171087428+frutescens@users.noreply.github.com>
24 lines
590 B
TypeScript
24 lines
590 B
TypeScript
import BattleScene from "#app/battle-scene";
|
|
import { BattlerIndex } from "#app/battle";
|
|
import { BattlerTagLapseType } from "#app/data/battler-tags";
|
|
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();
|
|
}
|
|
}
|