Remove Battle of Legends

This commit is contained in:
The Immortal 2020-10-22 17:38:37 +04:00
parent dcc9c63433
commit 86b94cdd67

View File

@ -332,41 +332,6 @@ export const Formats: FormatList = [
],
minSourceGen: 8,
},
{
name: "[Gen 8] Battle of Legends",
threads: [
`&bullet; <a href="https://www.smogon.com/forums/threads/3671265/">Battle of Legends</a>`,
],
mod: 'gen8',
gameType: 'doubles',
forcedLevel: 50,
teamLength: {
validate: [4, 6],
battle: 4,
},
ruleset: ['Obtainable', 'Team Preview', 'Species Clause', 'Nickname Clause', 'Item Clause', 'Cancel Mod', 'VGC Timer'],
minSourceGen: 8,
onValidateTeam(team) {
const RESTRICTED_LEGENDS = [
'Mewtwo', 'Mew',
'Celebi',
'Jirachi',
'Reshiram', 'Zekrom', 'Kyurem', 'Keldeo',
'Cosmog', 'Cosmoem', 'Solgaleo', 'Lunala', 'Necrozma', 'Magearna', 'Marshadow', 'Zeraora',
'Meltan', 'Melmetal',
'Zacian', 'Zamazenta', 'Eternatus', 'Zarude',
];
let restrictedCount = 0;
for (const set of team) {
const species = this.dex.getSpecies(set.species);
if (RESTRICTED_LEGENDS.includes(species.baseSpecies)) restrictedCount++;
}
if (restrictedCount > 1) {
return [`You are limited to one restricted legend.`, `(You have ${restrictedCount} restricted legends.)`];
}
},
},
{
name: "[Gen 8] 2v2 Doubles",
desc: `Double battle where you bring four Pok&eacute;mon to Team Preview and choose only two.`,