mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-14 20:25:57 +00:00
[Bug] Fix miniblackhole (#5169)
This commit is contained in:
parent
134c6e928f
commit
9c29cdc63d
@ -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);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user