Endless MBH Fix

This commit is contained in:
frutescens 2024-08-18 12:33:54 -07:00
parent d61c8f2870
commit 8eb4481301

View File

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