mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-25 08:49:32 +02:00
fix catches not updating dex
This commit is contained in:
parent
0720274bb2
commit
c0db6b044c
@ -1579,10 +1579,10 @@ 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
|
// 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
|
// Prevents form changes, nature changes, etc. from unintentionally updating the dex data of a "rental" pokemon
|
||||||
const speciesRootForm = pokemon.species.getRootSpeciesId();
|
const speciesRootForm = pokemon.species.getRootSpeciesId();
|
||||||
if (this.scene.gameData.dexData[speciesRootForm].caughtAttr) {
|
if (!incrementCount && !this.scene.gameData.dexData[speciesRootForm].caughtAttr) {
|
||||||
return this.setPokemonSpeciesCaught(pokemon, pokemon.species, incrementCount, fromEgg, showMessage);
|
|
||||||
} else {
|
|
||||||
return Promise.resolve(false);
|
return Promise.resolve(false);
|
||||||
|
} else {
|
||||||
|
return this.setPokemonSpeciesCaught(pokemon, pokemon.species, incrementCount, fromEgg, showMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user