From 8e72ca5bfcf77d39137421de08739213542db573 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 4 Apr 2024 08:38:10 -0400 Subject: [PATCH] Fix crash related to form-specific cries --- src/ui/starter-select-ui-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/starter-select-ui-handler.ts b/src/ui/starter-select-ui-handler.ts index ba71e91ef..b5ae4f4e4 100644 --- a/src/ui/starter-select-ui-handler.ts +++ b/src/ui/starter-select-ui-handler.ts @@ -1,5 +1,5 @@ import BattleScene, { Button } from "../battle-scene"; -import PokemonSpecies, { allSpecies, getPokemonSpecies, speciesStarters } from "../data/pokemon-species"; +import PokemonSpecies, { allSpecies, getPokemonSpecies, getPokemonSpeciesForm, speciesStarters } from "../data/pokemon-species"; import { Species } from "../data/enums/species"; import { TextStyle, addBBCodeTextObject, addTextObject, getTextColor } from "./text"; import { Mode } from "./ui"; @@ -589,7 +589,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler { this.starterNatures.push(this.natureCursor as unknown as Nature); this.starterMovesets.push(this.starterMoveset.slice(0) as StarterMoveset); if (this.speciesLoaded.get(species.speciesId)) - species.cry(this.scene); + getPokemonSpeciesForm(species.speciesId, props.formIndex).cry(this.scene); if (this.starterCursors.length === 6 || this.value === 10) this.tryStart(); this.updateInstructions();