From beb13c8361fe9ceaaffe3c9a6d17169a527ad925 Mon Sep 17 00:00:00 2001 From: Felix Staud Date: Wed, 17 Jul 2024 08:43:55 -0700 Subject: [PATCH] fix types in myster-encounter-phase.ts --- src/phases/mystery-encounter-phase.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/phases/mystery-encounter-phase.ts b/src/phases/mystery-encounter-phase.ts index 13856471e4d..cebba02f585 100644 --- a/src/phases/mystery-encounter-phase.ts +++ b/src/phases/mystery-encounter-phase.ts @@ -4,7 +4,7 @@ import { Phase } from "../phase"; import { Mode } from "../ui/ui"; import { hideMysteryEncounterIntroVisuals, OptionSelectSettings } from "../data/mystery-encounters/utils/encounter-phase-utils"; import { CheckSwitchPhase, NewBattlePhase, ReturnPhase, ScanIvsPhase, SelectModifierPhase, SummonPhase, ToggleDoublePositionPhase } from "../phases"; -import MysteryEncounterOption from "../data/mystery-encounters/mystery-encounter-option"; +import MysteryEncounterOption, { OptionPhaseCallback } from "../data/mystery-encounters/mystery-encounter-option"; import { MysteryEncounterVariant } from "../data/mystery-encounters/mystery-encounter"; import { getCharVariantFromDialogue } from "../data/dialogue"; import { TrainerSlot } from "../data/trainer-config"; @@ -138,7 +138,7 @@ export class MysteryEncounterPhase extends Phase { * Any phase that is meant to follow this one MUST be queued via the onOptionSelect() logic of the selected option */ export class MysteryEncounterOptionSelectedPhase extends Phase { - onOptionSelect: (scene: BattleScene) => Promise; + onOptionSelect: OptionPhaseCallback; constructor(scene: BattleScene) { super(scene); @@ -394,7 +394,7 @@ export class MysteryEncounterRewardsPhase extends Phase { * - Queuing of the next wave */ export class PostMysteryEncounterPhase extends Phase { - onPostOptionSelect: (scene: BattleScene) => Promise; + onPostOptionSelect: OptionPhaseCallback; constructor(scene: BattleScene) { super(scene);