Update src/ui/starter-select-ui-handler.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Ori shalhon 2025-01-06 08:44:51 +01:00 committed by GitHub
parent e4b1733598
commit c640e073b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1461,7 +1461,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
error = true;
break;
}
const currentPartyValue = this.starterSpecies.map(s => s.generation).reduce((total: number, _gen : number, i : number ) => total + this.scene.gameData.getSpeciesStarterValue(this.starterSpecies[i].speciesId), 0);
const currentPartyValue = this.starterSpecies.map(s => s.generation).reduce((total: number, _gen: number, i: number ) => total + this.scene.gameData.getSpeciesStarterValue(this.starterSpecies[i].speciesId), 0);
// Filter valid starters
const validStarters = this.filteredStarterContainers.filter(starter => {
const species = starter.species;