mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-06 09:58:10 +00:00
[Bug] Unlocking correct base form of Zygarde when captured (#5453)
This commit is contained in:
parent
89e8085c39
commit
c7df847e66
@ -1645,13 +1645,21 @@ export class GameData {
|
||||
} else if (formIndex === 3) {
|
||||
dexEntry.caughtAttr |= globalScene.gameData.getFormAttr(1);
|
||||
}
|
||||
} else if (pokemon.species.speciesId === Species.ZYGARDE) {
|
||||
if (formIndex === 4) {
|
||||
dexEntry.caughtAttr |= globalScene.gameData.getFormAttr(2);
|
||||
} else if (formIndex === 5) {
|
||||
dexEntry.caughtAttr |= globalScene.gameData.getFormAttr(3);
|
||||
}
|
||||
} else {
|
||||
const allFormChanges = pokemonFormChanges.hasOwnProperty(species.speciesId) ? pokemonFormChanges[species.speciesId] : [];
|
||||
const toCurrentFormChanges = allFormChanges.filter(f => (f.formKey === formKey));
|
||||
if (toCurrentFormChanges.length > 0) {
|
||||
// Needs to do this or Castform can unlock the wrong form, etc.
|
||||
dexEntry.caughtAttr |= globalScene.gameData.getFormAttr(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Unlock ability
|
||||
if (speciesStarterCosts.hasOwnProperty(species.speciesId)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user