Inheritance: Update banlist (#6408)

This commit is contained in:
Kris Johnson 2020-03-01 03:56:20 -07:00 committed by GitHub
parent fad1d3c7a6
commit 5880d80631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -453,6 +453,7 @@ let Formats = [
mod: 'gen8',
ruleset: ['[Gen 8] OU', '!Obtainable Abilities', '!Obtainable Moves'],
banlist: ['Shedinja', 'Assist', 'Shell Smash', 'Arena Trap', 'Huge Power', 'Imposter', 'Innards Out', 'Pure Power', 'Water Bubble'],
restricted: ['Dracovish', 'Dracozolt'],
validateSet(set, teamHas) {
const dex = this.dex;
const getEvoFamily = (/** @type {string | Template} */ species) => {
@ -466,8 +467,10 @@ let Formats = [
/** @type {{[k: string]: string[]}} */
const abilityMap = Object.create(null);
const donorBanlist = this.format.restricted || [];
for (const speciesid of Object.keys(dex.data.Pokedex)) {
const pokemon = dex.getTemplate(speciesid);
if (donorBanlist.includes(pokemon.species)) continue;
if (pokemon.isNonstandard) continue;
if (pokemon.isUnreleased) continue;
if (pokemon.requiredItem || pokemon.requiredMove) continue;