diff --git a/src/system/game-data.ts b/src/system/game-data.ts index 3278e590e..3e2fd8e0a 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -1026,7 +1026,7 @@ export class GameData { } if (!hasPrevolution) - this.addStarterCandy(species, (1 * (pokemon.isShiny() ? 5 * Math.pow(2, pokemon.variant) : 1)) * (fromEgg || pokemon.isBoss() ? 2 : 1)); + this.addStarterCandy(species, (1 * (pokemon.isShiny() ? 5 * Math.pow(2, pokemon.variant || 0) : 1)) * (fromEgg || pokemon.isBoss() ? 2 : 1)); } const checkPrevolution = () => {