Fix Kyurem learnset validation

This commit is contained in:
The Immortal
2020-05-28 00:41:31 +04:00
parent 062a989921
commit df8b99d244
2 changed files with 2 additions and 2 deletions

View File

@@ -1995,7 +1995,7 @@ export class TeamValidator {
species = this.dex.getSpecies(species.prevo);
if (species.gen > Math.max(2, this.dex.gen)) return null;
return species;
} else if (species.changesFrom) {
} else if (species.changesFrom && species.baseSpecies !== 'Kyurem') {
// For Pokemon like Rotom, Necrozma, and Gmax formes whose movesets are extensions are their base formes
return this.dex.getSpecies(species.changesFrom);
}

View File

@@ -512,7 +512,7 @@ describe('Team Validator', function () {
assert(illegal);
});
it.skip('should reject Pokemon that cannot obtain moves in a particular forme', function () {
it('should reject Pokemon that cannot obtain moves in a particular forme', function () {
let team = [
{species: 'toxicrity', ability: 'punkrock', moves: ['venomdrench, magneticflux'], evs: {hp: 1}},
{species: 'toxicrity-low-key', ability: 'punkrock', moves: ['venoshock, shiftgear'], evs: {hp: 1}},