From caf3cc940ff3faf9027b2f33877b2aa987945948 Mon Sep 17 00:00:00 2001 From: Bertie690 Date: Tue, 10 Jun 2025 21:21:20 -0400 Subject: [PATCH] Fixes --- src/ui/starter-select-ui-handler.ts | 4 ++-- test/abilities/forecast.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/starter-select-ui-handler.ts b/src/ui/starter-select-ui-handler.ts index 0b1e690a918..c60fc29dd0a 100644 --- a/src/ui/starter-select-ui-handler.ts +++ b/src/ui/starter-select-ui-handler.ts @@ -88,8 +88,8 @@ export interface Starter { nature: Nature; moveset?: StarterMoveset; pokerus: boolean; - nickname?: string; - teraType?: PokemonType; + nickname?: string | undefined; + teraType?: PokemonType | undefined; } interface LanguageSetting { diff --git a/test/abilities/forecast.test.ts b/test/abilities/forecast.test.ts index 8d3a679c917..639c73fe5e3 100644 --- a/test/abilities/forecast.test.ts +++ b/test/abilities/forecast.test.ts @@ -28,7 +28,7 @@ describe("Abilities - Forecast", () => { * @param form The expected form based on the active weather * @param initialForm The initial form pre form change */ - const testWeatherFormChange = async (game: GameManager, weather: WeatherType, form: number, initialForm?: number) => { + const testWeatherFormChange = async (game: GameManager, weather: WeatherType, form: number, initialForm: number) => { game.override.weather(weather).starterForms({ [SpeciesId.CASTFORM]: initialForm }); await game.classicMode.startBattle([SpeciesId.CASTFORM]);