mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-24 07:23:24 +02:00
Add similar protections for egg move pools
This commit is contained in:
parent
b167e34e7d
commit
e801afa8e9
@ -245,7 +245,11 @@ function getEggPoolForSpecies(
|
||||
excludeRare: boolean,
|
||||
rareEggMoveWeight = 0,
|
||||
): void {
|
||||
for (const [idx, moveId] of speciesEggMoves[rootSpeciesId].entries()) {
|
||||
const eggMoves = speciesEggMoves[rootSpeciesId];
|
||||
if (eggMoves == null) {
|
||||
return;
|
||||
}
|
||||
for (const [idx, moveId] of eggMoves.entries()) {
|
||||
if (levelPool.has(moveId) || (idx === 3 && excludeRare)) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user