mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-19 21:48:23 -05:00
Remove Battle of Legends
This commit is contained in:
parent
dcc9c63433
commit
86b94cdd67
|
|
@ -332,41 +332,6 @@ export const Formats: FormatList = [
|
|||
],
|
||||
minSourceGen: 8,
|
||||
},
|
||||
{
|
||||
name: "[Gen 8] Battle of Legends",
|
||||
threads: [
|
||||
`• <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émon to Team Preview and choose only two.`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user