[Bug] Let Shedinja relearn egg moves when evolved from a starter (#3915)
* [Bug] Let Shedinja relearn egg moves when evolved from a starter * Copy met level as well
This commit is contained in:
parent
672bc77c58
commit
234d617464
|
@ -3647,6 +3647,9 @@ export class PlayerPokemon extends Pokemon {
|
|||
newPokemon.moveset = this.moveset.slice();
|
||||
newPokemon.moveset = this.copyMoveset();
|
||||
newPokemon.luck = this.luck;
|
||||
newPokemon.metLevel = this.metLevel;
|
||||
newPokemon.metBiome = this.metBiome;
|
||||
newPokemon.metSpecies = this.metSpecies;
|
||||
newPokemon.fusionSpecies = this.fusionSpecies;
|
||||
newPokemon.fusionFormIndex = this.fusionFormIndex;
|
||||
newPokemon.fusionAbilityIndex = this.fusionAbilityIndex;
|
||||
|
|
|
@ -79,12 +79,15 @@ describe("Evolution", () => {
|
|||
|
||||
const nincada = game.scene.getPlayerPokemon()!;
|
||||
nincada.abilityIndex = 2;
|
||||
nincada.metBiome = -1;
|
||||
|
||||
nincada.evolve(pokemonEvolutions[Species.NINCADA][0], nincada.getSpeciesForm());
|
||||
const ninjask = game.scene.getParty()[0];
|
||||
const shedinja = game.scene.getParty()[1];
|
||||
expect(ninjask.abilityIndex).toBe(2);
|
||||
expect(shedinja.abilityIndex).toBe(1);
|
||||
// Regression test for https://github.com/pagefaultgames/pokerogue/issues/3842
|
||||
expect(shedinja.metBiome).toBe(-1);
|
||||
}, TIMEOUT);
|
||||
|
||||
it("should set wild delay to NONE by default", () => {
|
||||
|
|
Loading…
Reference in New Issue