transfer add

This commit is contained in:
frutescens 2024-11-03 21:49:29 -08:00
parent 8b189d3747
commit ca0d2eca92
1 changed files with 1 additions and 1 deletions

View File

@ -5128,7 +5128,7 @@ export class EnemyPokemon extends Pokemon {
}
if (pokemonReplaced && newPokemon.isAllowedInChallenge()) {
const modifiersToTransfer = this.scene.findModifiers(m => m instanceof PokemonHeldItemModifier && !(m instanceof BaseStatModifier) && m.pokemonId === pokemonReplaced, true) as PokemonHeldItemModifier[];
const modifiersToTransfer = this.scene.findModifiers(m => m instanceof PokemonHeldItemModifier && !(m instanceof BaseStatModifier) && m.isTransferable && m.pokemonId === pokemonReplaced, true) as PokemonHeldItemModifier[];
const transferResults: Promise<boolean>[] = [];
for (const modifier of modifiersToTransfer) {
transferResults.push(this.scene.tryTransferHeldItemModifier(modifier, newPokemon, false, modifier.getStackCount(), true, true));