mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-25 00:39:27 +02:00
Update src/system/game-data.ts
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
This commit is contained in:
parent
8818c91f84
commit
88e72fb666
@ -1586,7 +1586,7 @@ export class GameData {
|
||||
// If incrementCount === false (not a catch scenario), only update the pokemon's dex data if the Pokemon has already been marked as caught in dex
|
||||
// Prevents form changes, nature changes, etc. from unintentionally updating the dex data of a "rental" pokemon
|
||||
const speciesRootForm = pokemon.species.getRootSpeciesId();
|
||||
if (!!this.scene.gameData.dexData[speciesRootForm].caughtAttr) {
|
||||
if (this.scene.gameData.dexData[speciesRootForm].caughtAttr) {
|
||||
return this.setPokemonSpeciesCaught(pokemon, pokemon.species, incrementCount, fromEgg, showMessage);
|
||||
} else {
|
||||
return new Promise(resolve => resolve(false));
|
||||
|
Loading…
Reference in New Issue
Block a user