[Bug] Fix miniblackhole (#5169)
This commit is contained in:
parent
134c6e928f
commit
9c29cdc63d
|
@ -3183,12 +3183,12 @@ export abstract class HeldItemTransferModifier extends PokemonHeldItemModifier {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const randItemIndex = pokemon.randSeedInt(itemModifiers.length);
|
const randItemIndex = pokemon.randSeedInt(tierItemModifiers.length);
|
||||||
const randItem = itemModifiers[randItemIndex];
|
const randItem = tierItemModifiers[randItemIndex];
|
||||||
heldItemTransferPromises.push(globalScene.tryTransferHeldItemModifier(randItem, pokemon, false).then(success => {
|
heldItemTransferPromises.push(globalScene.tryTransferHeldItemModifier(randItem, pokemon, false).then(success => {
|
||||||
if (success) {
|
if (success) {
|
||||||
transferredModifierTypes.push(randItem.type);
|
transferredModifierTypes.push(randItem.type);
|
||||||
itemModifiers.splice(randItemIndex, 1);
|
tierItemModifiers.splice(randItemIndex, 1);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue