pokerogue/src/phase.ts
2024-04-09 12:08:38 -04:00

19 lines
385 B
TypeScript

import BattleScene from "./battle-scene";
export class Phase {
protected scene: BattleScene;
constructor(scene: BattleScene) {
this.scene = scene;
}
start() {
console.log(`%cStart Phase ${this.constructor.name}`, 'color:green;');
if (this.scene.abilityBar.shown)
this.scene.abilityBar.resetAutoHideTimer();
}
end() {
this.scene.shiftPhase();
}
}