[Bug] Fixed biome map options counting rng twice (#5648)

Fixed biome map options counting rng twice

Co-authored-by: Jimmybald1 <147992650+IBBCalc@users.noreply.github.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
This commit is contained in:
Jimmybald1 2025-04-12 16:56:04 +02:00 committed by GitHub
parent 6f56dce771
commit f9ff4abfb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,15 +38,7 @@ export class SelectBiomePhase extends BattlePhase {
.map(b => (!Array.isArray(b) ? b : b[0]));
if (biomes.length > 1 && globalScene.findModifier(m => m instanceof MapModifier)) {
const biomeChoices: Biome[] = (
!Array.isArray(biomeLinks[currentBiome])
? [biomeLinks[currentBiome] as Biome]
: (biomeLinks[currentBiome] as (Biome | [Biome, number])[])
)
.filter(b => !Array.isArray(b) || !randSeedInt(b[1]))
.map(b => (Array.isArray(b) ? b[0] : b));
const biomeSelectItems = biomeChoices.map(b => {
const biomeSelectItems = biomes.map(b => {
const ret: OptionSelectItem = {
label: getBiomeName(b),
handler: () => {