Fix Legendary egg gacha pulling in boosted rates for unobtainable species

pull/14/head
Flashfyre 2023-12-30 15:58:41 -05:00
parent 60260faaa4
commit 19fec88daa
1 changed files with 2 additions and 1 deletions

View File

@ -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;