mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
Make shedinja not dupe items on evolution
This commit is contained in:
parent
cf5378905e
commit
44faaede5b
@ -6061,15 +6061,6 @@ export class PlayerPokemon extends Pokemon {
|
||||
|
||||
globalScene.getPlayerParty().push(newPokemon);
|
||||
newPokemon.evolve(!isFusion ? newEvolution : new FusionSpeciesFormEvolution(this.id, newEvolution), evoSpecies);
|
||||
const modifiers = globalScene.findModifiers(
|
||||
m => m instanceof PokemonHeldItemModifier && m.pokemonId === this.id,
|
||||
true,
|
||||
) as PokemonHeldItemModifier[];
|
||||
modifiers.forEach(m => {
|
||||
const clonedModifier = m.clone() as PokemonHeldItemModifier;
|
||||
clonedModifier.pokemonId = newPokemon.id;
|
||||
globalScene.addModifier(clonedModifier, true);
|
||||
});
|
||||
globalScene.updateModifiers(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user