mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-22 01:24:13 +01:00
Fix Legendary egg gacha pulling in boosted rates for unobtainable species
This commit is contained in:
parent
60260faaa4
commit
19fec88daa
@ -92,7 +92,8 @@ export function getEggGachaTypeDescriptor(scene: BattleScene, egg: Egg): string
|
|||||||
export function getLegendaryGachaSpeciesForTimestamp(scene: BattleScene, timestamp: integer): Species {
|
export function getLegendaryGachaSpeciesForTimestamp(scene: BattleScene, timestamp: integer): Species {
|
||||||
const legendarySpecies = Object.entries(speciesStarters)
|
const legendarySpecies = Object.entries(speciesStarters)
|
||||||
.filter(s => s[1] >= 8 && s[1] <= 9)
|
.filter(s => s[1] >= 8 && s[1] <= 9)
|
||||||
.map(s => parseInt(s[0]));
|
.map(s => parseInt(s[0]))
|
||||||
|
.filter(s => getPokemonSpecies(s).isObtainable());
|
||||||
|
|
||||||
let ret: Species;
|
let ret: Species;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user