mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-15 13:31:40 +00:00
* update shedinja's gender to genderless * update unit test
This commit is contained in:
parent
10e0f9f0de
commit
8f884a7ef0
@ -4484,6 +4484,7 @@ export class PlayerPokemon extends Pokemon {
|
||||
newPokemon.moveset = this.moveset.slice();
|
||||
newPokemon.moveset = this.copyMoveset();
|
||||
newPokemon.luck = this.luck;
|
||||
newPokemon.gender = Gender.GENDERLESS;
|
||||
newPokemon.metLevel = this.metLevel;
|
||||
newPokemon.metBiome = this.metBiome;
|
||||
newPokemon.metSpecies = this.metSpecies;
|
||||
|
@ -78,12 +78,15 @@ describe("Evolution", () => {
|
||||
const nincada = game.scene.getPlayerPokemon()!;
|
||||
nincada.abilityIndex = 2;
|
||||
nincada.metBiome = -1;
|
||||
nincada.gender = 1;
|
||||
|
||||
nincada.evolve(pokemonEvolutions[Species.NINCADA][0], nincada.getSpeciesForm());
|
||||
const ninjask = game.scene.getPlayerParty()[0];
|
||||
const shedinja = game.scene.getPlayerParty()[1];
|
||||
expect(ninjask.abilityIndex).toBe(2);
|
||||
expect(shedinja.abilityIndex).toBe(1);
|
||||
expect(ninjask.gender).toBe(1);
|
||||
expect(shedinja.gender).toBe(-1);
|
||||
// Regression test for https://github.com/pagefaultgames/pokerogue/issues/3842
|
||||
expect(shedinja.metBiome).toBe(-1);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user