mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 07:42:25 +02:00
Ensuring that correct form shows up in Pokédex Index
This commit is contained in:
parent
7dee489296
commit
d3d807e0da
@ -1207,7 +1207,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
|
|||||||
shiny: false,
|
shiny: false,
|
||||||
female: props.female,
|
female: props.female,
|
||||||
variant: 0,
|
variant: 0,
|
||||||
formIndex: 0,
|
formIndex: props.formIndex,
|
||||||
};
|
};
|
||||||
return sanitizedProps;
|
return sanitizedProps;
|
||||||
}
|
}
|
||||||
@ -1906,7 +1906,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
|
|||||||
const dexEntry = globalScene.gameData.dexData[species.speciesId];
|
const dexEntry = globalScene.gameData.dexData[species.speciesId];
|
||||||
const caughtAttr = dexEntry.caughtAttr & globalScene.gameData.dexData[this.getStarterSpeciesId(species.speciesId)].caughtAttr & species.getFullUnlocksData();
|
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)));
|
const props = this.getSanitizedProps(globalScene.gameData.getSpeciesDexAttrProps(species, this.getCurrentDexProps(species.speciesId)));
|
||||||
|
|
||||||
if (shiny === undefined) {
|
if (shiny === undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user