From 802daecd65d9ae0ed1a8632d4b2dd979a7ef71d9 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Thu, 9 May 2024 15:39:45 +1000 Subject: [PATCH] Fix starters with multiple forms being unable to change move (#667) --- src/ui/starter-select-ui-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/starter-select-ui-handler.ts b/src/ui/starter-select-ui-handler.ts index 087f24362ed..514bb173a5c 100644 --- a/src/ui/starter-select-ui-handler.ts +++ b/src/ui/starter-select-ui-handler.ts @@ -1098,7 +1098,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler { // starterMoveData doesn't have base form moves or is using the single form format if (!this.scene.gameData.starterData[speciesId].moveset || Array.isArray(this.scene.gameData.starterData[speciesId].moveset)) this.scene.gameData.starterData[speciesId].moveset = { [props.formIndex]: this.starterMoveset.slice(0) as StarterMoveset }; - const starterMoveData = this.scene.gameData.starterData[speciesId].moveset[props.formIndex]; + const starterMoveData = this.scene.gameData.starterData[speciesId].moveset; // starterMoveData doesn't have active form moves if (!starterMoveData.hasOwnProperty(props.formIndex))