mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-14 11:29:28 +02:00
rrrr
This commit is contained in:
parent
907e707b8b
commit
4fa130ad9f
@ -134,7 +134,7 @@ describe("Moves - Parting Shot", () => {
|
||||
|
||||
game.move.select(MoveId.PARTING_SHOT);
|
||||
|
||||
await game.phaseInterceptor.to(BerryPhase, false);
|
||||
await game.phaseInterceptor.to("BerryPhase", false);
|
||||
expect(enemyPokemon.getStatStage(Stat.ATK)).toBe(-1);
|
||||
expect(enemyPokemon.getStatStage(Stat.SPATK)).toBe(-1);
|
||||
expect(game.scene.getPlayerField()[0].species.speciesId).toBe(SpeciesId.MURKROW);
|
||||
|
@ -366,7 +366,7 @@ describe("Bug-Type Superfan - Mystery Encounter", () => {
|
||||
await skipBattleRunMysteryEncounterRewardsPhase(game, false);
|
||||
|
||||
expect(scene.phaseManager.getCurrentPhase()?.constructor.name).toBe(MysteryEncounterRewardsPhase.name);
|
||||
game.phaseInterceptor["prompts"] = []; // Clear out prompt handlers
|
||||
game.promptHandler["prompts"] = []; // Clear out prompt handlers
|
||||
game.onNextPrompt("MysteryEncounterRewardsPhase", UiMode.OPTION_SELECT, () => {
|
||||
game.endPhase();
|
||||
});
|
||||
|
@ -99,7 +99,7 @@ export class PhaseInterceptor {
|
||||
currentPhase = pm.getCurrentPhase()!;
|
||||
// TODO: Remove proof-of-concept error throw after signature update
|
||||
if (!currentPhase) {
|
||||
throw new Error("currentPhase is null after being started! aaaaaaaaaaa");
|
||||
throw new Error("currentPhase is null after being started!");
|
||||
}
|
||||
|
||||
if (currentPhase.is(this.target)) {
|
||||
|
Loading…
Reference in New Issue
Block a user