From 9c29cdc63dd2e5a5d680c20ee069e3bd0463046a Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Fri, 24 Jan 2025 11:18:21 +1100 Subject: [PATCH] [Bug] Fix miniblackhole (#5169) --- src/modifier/modifier.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index 37f88deea7f..c51fa129efe 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -3183,12 +3183,12 @@ export abstract class HeldItemTransferModifier extends PokemonHeldItemModifier { break; } } - const randItemIndex = pokemon.randSeedInt(itemModifiers.length); - const randItem = itemModifiers[randItemIndex]; + const randItemIndex = pokemon.randSeedInt(tierItemModifiers.length); + const randItem = tierItemModifiers[randItemIndex]; heldItemTransferPromises.push(globalScene.tryTransferHeldItemModifier(randItem, pokemon, false).then(success => { if (success) { transferredModifierTypes.push(randItem.type); - itemModifiers.splice(randItemIndex, 1); + tierItemModifiers.splice(randItemIndex, 1); } })); }