From df8b99d2443899b2fee06f66c91c8d77ed2a5f8f Mon Sep 17 00:00:00 2001 From: The Immortal Date: Thu, 28 May 2020 00:41:31 +0400 Subject: [PATCH] Fix Kyurem learnset validation --- sim/team-validator.ts | 2 +- test/sim/team-validator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/team-validator.ts b/sim/team-validator.ts index c34c0643f5..01a5cc0d58 100644 --- a/sim/team-validator.ts +++ b/sim/team-validator.ts @@ -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); } diff --git a/test/sim/team-validator.js b/test/sim/team-validator.js index ffbebf4733..d27412ddf1 100644 --- a/test/sim/team-validator.js +++ b/test/sim/team-validator.js @@ -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}},