Fix shiny eggs corrupting candy count

pull/192/head
Flashfyre 2024-04-19 01:01:57 -04:00
parent 3f9e7b4839
commit b546203118
1 changed files with 1 additions and 1 deletions

View File

@ -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 = () => {