mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
[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:
parent
6f56dce771
commit
f9ff4abfb0
@ -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: () => {
|
||||
|
Loading…
Reference in New Issue
Block a user