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
88e72fb666
commit
43fcd9bee0
@ -1727,7 +1727,7 @@ export class GameData {
|
||||
addStarterCandy(species: PokemonSpecies, count: integer): void {
|
||||
// Only gain candies if the Pokemon has already been marked as caught in dex (ignore "rental" pokemon)
|
||||
const speciesRootForm = species.getRootSpeciesId();
|
||||
if (!!this.scene.gameData.dexData[speciesRootForm].caughtAttr) {
|
||||
if (this.scene.gameData.dexData[speciesRootForm].caughtAttr) {
|
||||
this.scene.candyBar.showStarterSpeciesCandy(species.speciesId, count);
|
||||
this.starterData[species.speciesId].candyCount += count;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user