mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Adding exceptions for Zygarde in game-data.ts
This commit is contained in:
parent
9b2f649078
commit
4efc9f896a
@ -1645,11 +1645,19 @@ export class GameData {
|
|||||||
} else if (formIndex === 3) {
|
} else if (formIndex === 3) {
|
||||||
dexEntry.caughtAttr |= globalScene.gameData.getFormAttr(1);
|
dexEntry.caughtAttr |= globalScene.gameData.getFormAttr(1);
|
||||||
}
|
}
|
||||||
}
|
} else if (pokemon.species.speciesId === Species.ZYGARDE) {
|
||||||
const allFormChanges = pokemonFormChanges.hasOwnProperty(species.speciesId) ? pokemonFormChanges[species.speciesId] : [];
|
if (formIndex === 4) {
|
||||||
const toCurrentFormChanges = allFormChanges.filter(f => (f.formKey === formKey));
|
dexEntry.caughtAttr |= globalScene.gameData.getFormAttr(2);
|
||||||
if (toCurrentFormChanges.length > 0) {
|
} else if (formIndex === 5) {
|
||||||
dexEntry.caughtAttr |= globalScene.gameData.getFormAttr(0);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user