Fix candy menu not showing for species with only 1 starter move

This commit is contained in:
Flashfyre 2024-04-13 19:21:59 -04:00
parent 608c024749
commit 61ce0887ef

View File

@ -784,6 +784,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
return true; return true;
} }
}); });
}
const starterData = this.scene.gameData.starterData[this.lastSpecies.speciesId]; const starterData = this.scene.gameData.starterData[this.lastSpecies.speciesId];
const candyCount = starterData.candyCount; const candyCount = starterData.candyCount;
const passiveAttr = starterData.passiveAttr; const passiveAttr = starterData.passiveAttr;
@ -880,7 +881,6 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
return true; return true;
} }
}); });
}
options.push({ options.push({
label: 'Cancel', label: 'Cancel',
handler: () => { handler: () => {