mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 23:32:19 +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,
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user