mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-10-20 12:05:50 +02: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>
18 lines
433 B
TypeScript
18 lines
433 B
TypeScript
import BattleScene from "#app/battle-scene";
|
|
import { Phase } from "#app/phase";
|
|
import { Mode } from "#app/ui/ui";
|
|
import { LoginPhase } from "./login-phase";
|
|
|
|
export class UnavailablePhase extends Phase {
|
|
constructor(scene: BattleScene) {
|
|
super(scene);
|
|
}
|
|
|
|
start(): void {
|
|
this.scene.ui.setMode(Mode.UNAVAILABLE, () => {
|
|
this.scene.unshiftPhase(new LoginPhase(this.scene, true));
|
|
this.end();
|
|
});
|
|
}
|
|
}
|