mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-22 01:24:13 +01:00
Fix shiny eggs corrupting candy count
This commit is contained in:
parent
3f9e7b4839
commit
b546203118
@ -1026,7 +1026,7 @@ export class GameData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!hasPrevolution)
|
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 = () => {
|
const checkPrevolution = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user