mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-25 02:24:48 -05:00
Fix Kyurem learnset validation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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}},
|
||||
|
||||
Reference in New Issue
Block a user