Revert "[Bug] Fix miniblackhole (#5169)" (#5183)

This reverts commit 9c29cdc63d.
This commit is contained in:
damocleas 2025-01-25 17:29:09 -05:00 committed by GitHub
parent 996ce5d986
commit 706a23238c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -3183,12 +3183,12 @@ export abstract class HeldItemTransferModifier extends PokemonHeldItemModifier {
break;
}
}
const randItemIndex = pokemon.randSeedInt(tierItemModifiers.length);
const randItem = tierItemModifiers[randItemIndex];
const randItemIndex = pokemon.randSeedInt(itemModifiers.length);
const randItem = itemModifiers[randItemIndex];
heldItemTransferPromises.push(globalScene.tryTransferHeldItemModifier(randItem, pokemon, false).then(success => {
if (success) {
transferredModifierTypes.push(randItem.type);
tierItemModifiers.splice(randItemIndex, 1);
itemModifiers.splice(randItemIndex, 1);
}
}));
}