From 8eb448130132ff9eed614a2ec576926814008df0 Mon Sep 17 00:00:00 2001 From: frutescens Date: Sun, 18 Aug 2024 12:33:54 -0700 Subject: [PATCH] Endless MBH Fix --- src/modifier/modifier-type.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index 365fc433d2f..8e36d513ba6 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -2057,7 +2057,9 @@ export function getEnemyBuffModifierForWave(tier: ModifierTier, enemyModifiers: export function getEnemyModifierTypesForWave(waveIndex: integer, count: integer, party: EnemyPokemon[], poolType: ModifierPoolType.WILD | ModifierPoolType.TRAINER, upgradeChance: integer = 0): PokemonHeldItemModifierType[] { const ret = new Array(count).fill(0).map(() => getNewModifierTypeOption(party, poolType, undefined, upgradeChance && !Utils.randSeedInt(upgradeChance) ? 1 : 0)?.type as PokemonHeldItemModifierType); if (!(waveIndex % 1000)) { - ret.push(getModifierType(modifierTypes.MINI_BLACK_HOLE) as PokemonHeldItemModifierType); + const bossMBH = getModifierType(modifierTypes.MINI_BLACK_HOLE) as TurnHeldItemTransferModifier; + bossMBH.setTransferrableFalse(); + ret.push(bossMBH); } return ret; }