This commit is contained in:
Bertie690 2025-08-09 09:51:50 -04:00
parent 907e707b8b
commit 4fa130ad9f
3 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ describe("Moves - Parting Shot", () => {
game.move.select(MoveId.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.ATK)).toBe(-1);
expect(enemyPokemon.getStatStage(Stat.SPATK)).toBe(-1); expect(enemyPokemon.getStatStage(Stat.SPATK)).toBe(-1);
expect(game.scene.getPlayerField()[0].species.speciesId).toBe(SpeciesId.MURKROW); expect(game.scene.getPlayerField()[0].species.speciesId).toBe(SpeciesId.MURKROW);

View File

@ -366,7 +366,7 @@ describe("Bug-Type Superfan - Mystery Encounter", () => {
await skipBattleRunMysteryEncounterRewardsPhase(game, false); await skipBattleRunMysteryEncounterRewardsPhase(game, false);
expect(scene.phaseManager.getCurrentPhase()?.constructor.name).toBe(MysteryEncounterRewardsPhase.name); 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.onNextPrompt("MysteryEncounterRewardsPhase", UiMode.OPTION_SELECT, () => {
game.endPhase(); game.endPhase();
}); });

View File

@ -99,7 +99,7 @@ export class PhaseInterceptor {
currentPhase = pm.getCurrentPhase()!; currentPhase = pm.getCurrentPhase()!;
// TODO: Remove proof-of-concept error throw after signature update // TODO: Remove proof-of-concept error throw after signature update
if (!currentPhase) { 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)) { if (currentPhase.is(this.target)) {