Ensuring that correct form shows up in Pokédex Index

This commit is contained in:
Wlowscha 2025-02-23 19:10:30 +01:00
parent 7dee489296
commit d3d807e0da
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -1207,7 +1207,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
shiny: false,
female: props.female,
variant: 0,
formIndex: 0,
formIndex: props.formIndex,
};
return sanitizedProps;
}
@ -1906,7 +1906,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
const dexEntry = globalScene.gameData.dexData[species.speciesId];
const caughtAttr = dexEntry.caughtAttr & globalScene.gameData.dexData[this.getStarterSpeciesId(species.speciesId)].caughtAttr & species.getFullUnlocksData();
if (!caughtAttr) {
if (caughtAttr) {
const props = this.getSanitizedProps(globalScene.gameData.getSpeciesDexAttrProps(species, this.getCurrentDexProps(species.speciesId)));
if (shiny === undefined) {