forked from smogon/pokemon-showdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformats.js
2032 lines (1877 loc) · 67.9 KB
/
formats.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'use strict';
// Note: This is the list of formats
// The rules that formats use are stored in data/rulesets.js
/**@type {(FormatsData | {section: string, column?: number})[]} */
let Formats = [
// US/UM Singles
///////////////////////////////////////////////////////////////////
{
section: "US/UM Singles",
},
{
name: "[Gen 7] Random Battle",
desc: `Randomized teams of level-balanced Pokémon with sets that are generated to be competitively viable.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3591157/">Sets and Suggestions</a>`,
`• <a href="https://www.smogon.com/forums/threads/3616946/">Role Compendium</a>`,
],
mod: 'gen7',
team: 'random',
ruleset: ['PotD', 'Pokemon', 'Sleep Clause Mod', 'HP Percentage Mod', 'Cancel Mod'],
},
{
name: "[Gen 7] Random Battle (Blitz)",
mod: 'gen7',
team: 'random',
ruleset: ['[Gen 7] Random Battle', 'Blitz'],
},
{
name: "[Gen 7] Unrated Random Battle",
mod: 'gen7',
team: 'random',
challengeShow: false,
rated: false,
ruleset: ['PotD', 'Pokemon', 'Sleep Clause Mod', 'HP Percentage Mod', 'Cancel Mod'],
},
{
name: "[Gen 7] OU",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3646999/">OU Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3621329/">OU Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3638845/">OU Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['Pokemon', 'Standard', 'Team Preview'],
banlist: ['Uber', 'Arena Trap', 'Power Construct', 'Shadow Tag', 'Baton Pass'],
},
{
name: "[Gen 7] OU (Blitz)",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3646999/">OU Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3621329/">OU Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3638845/">OU Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['[Gen 7] OU', 'Blitz'],
},
{
name: "[Gen 7] Ubers",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3621030/">Ubers Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3623296/">Ubers Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3639330/">Ubers Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['Pokemon', 'Standard', 'Team Preview', 'Mega Rayquaza Clause'],
banlist: ['Baton Pass'],
},
{
name: "[Gen 7] UU",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3652404/">UU Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3641346/">UU Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3621217/">UU Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['[Gen 7] OU'],
banlist: ['OU', 'UUBL', 'Drizzle', 'Drought', 'Kommonium Z', 'Mewnium Z'],
unbanlist: ['Mimikyu'],
onBegin() {
if (this.rated && this.format === 'gen7uu') this.add('html', `<div class="broadcast-red"><strong>UU is currently suspecting Mimikyu! For information on how to participate check out the <a href="https://www.smogon.com/forums/threads/3652404/">suspect thread</a>.</strong></div>`);
},
},
{
name: "[Gen 7] RU",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3646905/">RU Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3645873/">RU Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3645338/">RU Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['[Gen 7] UU'],
banlist: ['UU', 'RUBL', 'Mimikyu', 'Aurora Veil'],
unbanlist: ['Drought'],
},
{
name: "[Gen 7] NU",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3650934/">NU Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3645166/">NU Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3632667/">NU Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['[Gen 7] RU'],
banlist: ['RU', 'NUBL', 'Drought'],
},
{
name: "[Gen 7] PU",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3652157/">PU Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3614892/">PU Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3611496/">PU Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['[Gen 7] NU'],
banlist: ['NU', 'PUBL'],
onBegin() {
if (this.rated && this.format === 'gen7pu') this.add('html', `<div class="broadcast-blue"><strong>PU is currently suspecting Guzzlord! For information on how to participate check out the <a href="https://www.smogon.com/forums/threads/3652157/">suspect thread</a>.</strong></div>`);
},
},
{
name: "[Gen 7] LC",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3587196/">LC Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/dex/sm/formats/lc/">LC Banlist</a>`,
`• <a href="https://www.smogon.com/forums/threads/3621440/">LC Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3639319/">LC Sample Teams</a>`,
],
mod: 'gen7',
maxLevel: 5,
ruleset: ['Pokemon', 'Standard', 'Swagger Clause', 'Team Preview', 'Little Cup'],
banlist: [
'Aipom', 'Cutiefly', 'Drifloon', 'Gligar', 'Gothita', 'Meditite', 'Misdreavus', 'Murkrow', 'Porygon',
'Scyther', 'Sneasel', 'Swirlix', 'Tangela', 'Trapinch', 'Vulpix-Base', 'Wingull', 'Yanma',
'Eevium Z', 'Baton Pass', 'Dragon Rage', 'Sonic Boom',
],
},
{
name: "[Gen 7] LC UU",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3628499/">LC UU</a>`,
],
mod: 'gen7',
searchShow: false,
maxLevel: 5,
ruleset: ['[Gen 7] LC'],
banlist: [
// LC
'Abra', 'Bunnelby', 'Carvanha', 'Chinchou', 'Clamperl', 'Corphish', 'Croagunk', 'Dewpider', 'Diglett-Base',
'Doduo', 'Drilbur', 'Dwebble', 'Elekid', 'Ferroseed', 'Foongus', 'Frillish', 'Gastly', 'Grimer-Alola', 'Magnemite',
'Mareanie', 'Mienfoo', 'Mudbray', 'Munchlax', 'Omanyte', 'Onix', 'Pawniard', 'Ponyta', 'Scraggy', 'Shellder',
'Snivy', 'Snubbull', 'Spritzee', 'Staryu', 'Surskit', 'Timburr', 'Tirtouga', 'Vullaby', 'Vulpix-Alola', 'Zigzagoon',
// LC UUBL
'Magby', 'Rufflet', 'Wynaut', 'Deep Sea Tooth',
],
},
{
name: "[Gen 7] Monotype",
desc: `All the Pokémon on a team must share a type.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3621036/">Monotype Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3622349">Monotype Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3599682/">Monotype Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['Pokemon', 'Standard', 'Swagger Clause', 'Same Type Clause', 'Team Preview'],
banlist: [
'Aegislash', 'Arceus', 'Blaziken', 'Darkrai', 'Deoxys-Base', 'Deoxys-Attack', 'Dialga', 'Genesect', 'Gengar-Mega', 'Giratina', 'Groudon',
'Ho-Oh', 'Hoopa-Unbound', 'Kangaskhan-Mega', 'Kartana', 'Kyogre', 'Kyurem-White', 'Lucario-Mega', 'Lugia', 'Lunala', 'Magearna',
'Marshadow', 'Mawile-Mega', 'Medicham-Mega', 'Metagross-Mega', 'Mewtwo', 'Naganadel', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Palkia',
'Pheromosa', 'Rayquaza', 'Reshiram', 'Salamence-Mega', 'Shaymin-Sky', 'Solgaleo', 'Tapu Lele', 'Xerneas', 'Yveltal', 'Zekrom', 'Zygarde',
'Battle Bond', 'Shadow Tag', 'Damp Rock', 'Smooth Rock', 'Terrain Extender', 'Baton Pass',
],
},
{
name: "[Gen 7] Anything Goes",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3587441/">Anything Goes Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3591711/">Anything Goes Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3646736/">Anything Goes Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['Pokemon', 'Endless Battle Clause', 'Team Preview', 'HP Percentage Mod', 'Cancel Mod'],
banlist: ['Illegal', 'Unreleased'],
},
{
name: "[Gen 7] 1v1",
desc: `Bring three Pokémon to Team Preview and choose one to battle.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3646757/">1v1 Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3646758/">1v1 Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3646826/">1v1 Sample Teams</a>`,
],
mod: 'gen7',
teamLength: {
validate: [1, 3],
battle: 1,
},
allowMultisearch: true,
ruleset: ['Pokemon', 'Species Clause', 'Nickname Clause', 'Moody Clause', 'OHKO Clause', 'Evasion Moves Clause', 'Accuracy Moves Clause', 'Swagger Clause', 'Endless Battle Clause', 'HP Percentage Mod', 'Cancel Mod', 'Team Preview'],
banlist: [
'Illegal', 'Unreleased', 'Arceus', 'Darkrai', 'Deoxys-Base', 'Deoxys-Attack', 'Deoxys-Defense', 'Dialga', 'Giratina',
'Groudon', 'Ho-Oh', 'Kangaskhan-Mega', 'Kyogre', 'Kyurem-Black', 'Kyurem-White', 'Lugia', 'Lunala', 'Marshadow', 'Mewtwo',
'Mimikyu', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Palkia', 'Rayquaza', 'Reshiram', 'Salamence-Mega', 'Shaymin-Sky',
'Snorlax', 'Solgaleo', 'Tapu Koko', 'Xerneas', 'Yveltal', 'Zekrom', 'Focus Sash', 'Perish Song', 'Detect + Fightinium Z',
],
},
{
name: "[Gen 7] ZU",
desc: `The unofficial usage-based tier below PU.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3646743/">ZU Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3643412/">ZU Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3646739/">ZU Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['[Gen 7] PU'],
banlist: [
'PU', 'Carracosta', 'Crabominable', 'Gorebyss', 'Jynx', 'Musharna', 'Raticate-Alola',
'Raticate-Alola-Totem', 'Throh', 'Turtonator', 'Type: Null', 'Ursaring', 'Victreebel', 'Zangoose',
],
},
{
name: "[Gen 7] CAP",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3621207/">CAP Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3626018/">CAP Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3648521/">CAP Sample Teams</a>`,
],
mod: 'gen7',
ruleset: ['[Gen 7] OU', 'Allow CAP'],
banlist: [
'Aurumoth + Quiver Dance', 'Crucibelle + Head Smash', 'Crucibelle + Low Kick',
'Tomohawk + Earth Power', 'Tomohawk + Reflect',
],
},
{
name: "[Gen 7] CAP LC",
threads: [`• <a href="https://www.smogon.com/forums/threads/3599594/">CAP LC</a>`],
mod: 'gen7',
searchShow: false,
maxLevel: 5,
ruleset: ['[Gen 7] LC', 'Allow CAP'],
},
{
name: "[Gen 7] Battle Spot Singles",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3601012/">Introduction to Battle Spot Singles</a>`,
`• <a href="https://www.smogon.com/forums/threads/3605970/">Battle Spot Singles Viability Ranking</a>`,
`• <a href="https://www.smogon.com/forums/threads/3601658/">Battle Spot Singles Roles Compendium</a>`,
`• <a href="https://www.smogon.com/forums/threads/3619162/">Battle Spot Singles Sample Teams</a>`,
],
mod: 'gen7',
maxForcedLevel: 50,
teamLength: {
validate: [3, 6],
battle: 3,
},
ruleset: ['Pokemon', 'Standard GBU'],
requirePentagon: true,
},
{
name: "[Gen 7] Battle Spot Special 16",
threads: [`• <a href="https://www.smogon.com/forums/threads/3651251/">Battle Spot Special 16</a>`],
mod: 'gen7',
maxForcedLevel: 50,
teamLength: {
validate: [3, 6],
battle: 3,
},
ruleset: ['Pokemon', 'Standard GBU'],
banlist: [
'Aegislash', 'Azumarill', 'Blaziken', 'Breloom', 'Celesteela', 'Charizard', 'Cloyster', 'Dragonite',
'Excadrill', 'Ferrothorn', 'Garchomp', 'Gengar', 'Gliscor', 'Greninja', 'Gyarados', 'Heatran', 'Hippowdon',
'Hydreigon', 'Kangaskhan', 'Kartana', 'Landorus', 'Lucario', 'Mamoswine', 'Mawile', 'Metagross', 'Mimikyu',
'Naganadel', 'Porygon2', 'Rotom', 'Salamence', 'Scizor', 'Serperior', 'Skarmory', 'Snorlax', 'Tapu Fini',
'Tapu Koko', 'Tapu Lele', 'Thundurus', 'Toxapex', 'Tyranitar', 'Venusaur', 'Volcarona', 'Zapdos',
],
},
{
name: "[Gen 7] Custom Game",
mod: 'gen7',
searchShow: false,
canUseRandomTeam: true,
debug: true,
maxLevel: 9999,
trunc(n) { return Math.trunc(n); },
defaultLevel: 100,
teamLength: {
validate: [1, 24],
battle: 24,
},
// no restrictions, for serious (other than team preview)
ruleset: ['Team Preview', 'Cancel Mod'],
},
// US/UM Doubles
///////////////////////////////////////////////////////////////////
{
section: "US/UM Doubles",
},
{
name: "[Gen 7] Random Doubles Battle",
threads: [`• <a href="https://www.smogon.com/forums/threads/3601525/">Sets and Suggestions</a>`],
mod: 'gen7',
gameType: 'doubles',
team: 'random',
ruleset: ['PotD', 'Pokemon', 'HP Percentage Mod', 'Cancel Mod'],
},
{
name: "[Gen 7] Doubles OU",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3648227/">Doubles OU Metagame Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3623347/">Doubles OU Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3590987/">Doubles OU Sample Teams</a>`,
],
mod: 'gen7',
gameType: 'doubles',
ruleset: ['Pokemon', 'Standard Doubles', 'Swagger Clause', 'Team Preview'],
banlist: ['DUber', 'Power Construct', 'Eevium Z', 'Dark Void', 'Gravity ++ Grass Whistle', 'Gravity ++ Hypnosis', 'Gravity ++ Lovely Kiss', 'Gravity ++ Sing', 'Gravity ++ Sleep Powder'],
},
{
name: "[Gen 7] Doubles Ubers",
threads: [`• <a href="https://www.smogon.com/forums/threads/3635755/">Doubles Ubers</a>`],
mod: 'gen7',
gameType: 'doubles',
ruleset: ['Pokemon', 'Standard Doubles', 'Team Preview'],
banlist: ['Dark Void'],
},
{
name: "[Gen 7] Doubles UU",
threads: [`• <a href="https://www.smogon.com/forums/threads/3598014/">Doubles UU Metagame Discussion</a>`],
mod: 'gen7',
gameType: 'doubles',
ruleset: ['[Gen 7] Doubles OU'],
banlist: ['DOU', 'DBL'],
},
{
name: "[Gen 7] VGC 2019 Sun Series",
mod: 'gen7',
gameType: 'doubles',
searchShow: false,
forcedLevel: 50,
teamLength: {
validate: [4, 6],
battle: 4,
},
ruleset: ['Pokemon', 'Minimal GBU', 'VGC Timer'],
banlist: ['Unown', 'Dragon Ascent', 'Custap Berry', 'Enigma Berry', 'Jaboca Berry', 'Micle Berry', 'Rowap Berry'],
requirePlus: true,
onValidateTeam(team) {
const legends = ['Mewtwo', 'Lugia', 'Ho-Oh', 'Kyogre', 'Groudon', 'Rayquaza', 'Dialga', 'Palkia', 'Giratina', 'Reshiram', 'Zekrom', 'Kyurem', 'Xerneas', 'Yveltal', 'Zygarde', 'Cosmog', 'Cosmoem', 'Solgaleo', 'Lunala', 'Necrozma'];
let n = 0;
let problems = [];
for (const set of team) {
const baseSpecies = this.getTemplate(set.species).baseSpecies;
if (legends.includes(baseSpecies)) {
n++;
if (n === 3) problems.push(`You can only use up to two legendary Pok\u00E9mon.`);
}
const item = this.getItem(set.item);
if (item.zMove || item.megaStone || ['redorb', 'blueorb'].includes(item.id)) problems.push(`${set.name || set.species}'s item ${item.name} is banned.`);
}
return problems;
},
},
{
name: "[Gen 7] VGC 2019 Moon Series",
mod: 'gen7',
gameType: 'doubles',
searchShow: false,
forcedLevel: 50,
teamLength: {
validate: [4, 6],
battle: 4,
},
ruleset: ['Pokemon', 'Minimal GBU', 'VGC Timer'],
banlist: ['Unown', 'Dragon Ascent'],
requirePlus: true,
onValidateTeam(team) {
const legends = ['Mewtwo', 'Lugia', 'Ho-Oh', 'Kyogre', 'Groudon', 'Rayquaza', 'Dialga', 'Palkia', 'Giratina', 'Reshiram', 'Zekrom', 'Kyurem', 'Xerneas', 'Yveltal', 'Zygarde', 'Cosmog', 'Cosmoem', 'Solgaleo', 'Lunala', 'Necrozma'];
let n = 0;
let problems = [];
for (const set of team) {
const baseSpecies = this.getTemplate(set.species).baseSpecies;
if (legends.includes(baseSpecies)) {
n++;
if (n === 3) problems.push(`You can only use up to two legendary Pok\u00E9mon.`);
}
const item = this.getItem(set.item);
if (item.megaStone || ['redorb', 'blueorb', 'ultranecroziumz'].includes(item.id)) problems.push(`${set.name || set.species}'s item ${item.name} is banned.`);
}
return problems;
},
},
{
name: "[Gen 7] VGC 2019 Ultra Series",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3641100/">VGC 2019 Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3641123/">VGC 2019 Viability Rankings</a>`,
],
mod: 'gen7',
gameType: 'doubles',
forcedLevel: 50,
teamLength: {
validate: [4, 6],
battle: 4,
},
ruleset: ['Pokemon', 'Minimal GBU', 'VGC Timer'],
banlist: ['Unown'],
requirePlus: true,
onValidateTeam(team) {
const legends = ['Mewtwo', 'Lugia', 'Ho-Oh', 'Kyogre', 'Groudon', 'Rayquaza', 'Dialga', 'Palkia', 'Giratina', 'Reshiram', 'Zekrom', 'Kyurem', 'Xerneas', 'Yveltal', 'Zygarde', 'Cosmog', 'Cosmoem', 'Solgaleo', 'Lunala', 'Necrozma'];
let n = 0;
for (const set of team) {
const baseSpecies = this.getTemplate(set.species).baseSpecies;
if (legends.includes(baseSpecies)) n++;
if (n > 2) return [`You can only use up to two legendary Pok\u00E9mon.`];
}
},
},
{
name: "[Gen 7] VGC 2018",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3631800/">VGC 2018 Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3622041/">VGC 2018 Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3628885/">VGC 2018 Sample Teams</a>`,
],
mod: 'gen7',
gameType: 'doubles',
forcedLevel: 50,
teamLength: {
validate: [4, 6],
battle: 4,
},
timer: {starting: 5 * 60, addPerTurn: 0, maxPerTurn: 55, maxFirstTurn: 90, grace: 90, timeoutAutoChoose: true, dcTimerBank: false},
ruleset: ['Pokemon', 'Standard GBU'],
banlist: ['Unown', 'Custap Berry', 'Enigma Berry', 'Jaboca Berry', 'Micle Berry', 'Rowap Berry'],
requirePlus: true,
},
{
name: "[Gen 7] VGC 2017",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3583926/">VGC 2017 Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3591794/">VGC 2017 Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3590391/">VGC 2017 Sample Teams</a>`,
],
mod: 'vgc17',
gameType: 'doubles',
searchShow: false,
forcedLevel: 50,
teamLength: {
validate: [4, 6],
battle: 4,
},
timer: {starting: 15 * 60, addPerTurn: 0, maxPerTurn: 55, maxFirstTurn: 90, grace: 90, timeoutAutoChoose: true, dcTimerBank: false},
ruleset: ['Pokemon', 'Species Clause', 'Nickname Clause', 'Item Clause', 'Team Preview', 'Cancel Mod', 'Alola Pokedex'],
banlist: [
'Illegal', 'Unreleased', 'Solgaleo', 'Lunala', 'Necrozma', 'Magearna', 'Marshadow', 'Zygarde', 'Mega',
'Custap Berry', 'Enigma Berry', 'Jaboca Berry', 'Micle Berry', 'Rowap Berry',
],
requirePlus: true,
},
{
name: "[Gen 7] Battle Spot Doubles",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3595001/">Battle Spot Doubles Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3593890/">Battle Spot Doubles Viability Rankings</a>`,
`• <a href="https://www.smogon.com/forums/threads/3595859/">Battle Spot Doubles Sample Teams</a>`,
],
mod: 'gen7',
gameType: 'doubles',
maxForcedLevel: 50,
teamLength: {
validate: [4, 6],
battle: 4,
},
ruleset: ['Pokemon', 'Standard GBU'],
requirePentagon: true,
},
{
name: "[Gen 7] 2v2 Doubles",
desc: `Double battle where you bring four Pokémon to Team Preview and choose only two.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3606989/">2v2 Doubles</a>`,
],
mod: 'gen7',
gameType: 'doubles',
searchShow: false,
teamLength: {
validate: [2, 4],
battle: 2,
},
ruleset: ['Pokemon', 'Standard Doubles', 'Accuracy Moves Clause', 'Swagger Clause', 'Z-Move Clause', 'Sleep Clause Mod', 'Team Preview'],
banlist: [
'Arceus', 'Dialga', 'Giratina', 'Groudon', 'Ho-Oh', 'Jirachi', 'Kangaskhan-Mega', 'Kyogre', 'Kyurem-White',
'Lugia', 'Lunala', 'Magearna', 'Marshadow', 'Mewtwo', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Palkia',
'Rayquaza', 'Reshiram', 'Salamence-Mega', 'Snorlax', 'Solgaleo', 'Tapu Lele', 'Xerneas', 'Yveltal', 'Zekrom',
'Power Construct', 'Eevium Z', 'Focus Sash', 'Dark Void', 'Final Gambit', 'Perish Song',
'Gravity ++ Grass Whistle', 'Gravity ++ Hypnosis', 'Gravity ++ Lovely Kiss', 'Gravity ++ Sing', 'Gravity ++ Sleep Powder',
],
},
{
name: '[Gen 7] Metronome Battle',
threads: [
`• <a href="https://www.smogon.com/forums/threads/3632075/">Metronome Battle</a>`,
],
mod: 'gen7',
gameType: 'doubles',
rated: false,
teamLength: {
validate: [2, 2],
battle: 2,
},
ruleset: ['HP Percentage Mod', 'Cancel Mod'],
banlist: [
'Pokestar Spirit', 'Battle Bond', 'Cheek Pouch', 'Cursed Body', 'Desolate Land', 'Dry Skin', 'Fluffy', 'Fur Coat', 'Grassy Surge',
'Huge Power', 'Ice Body', 'Iron Barbs', 'Moody', 'Parental Bond', 'Poison Heal', 'Power Construct', 'Pressure', 'Primordial Sea', 'Protean',
'Pure Power', 'Rain Dish', 'Rough Skin', 'Sand Stream', 'Schooling', 'Snow Warning', 'Stamina', 'Volt Absorb', 'Water Absorb', 'Wonder Guard',
'Abomasite', 'Aguav Berry', 'Assault Vest', 'Berry', 'Berry Juice', 'Berserk Gene', 'Black Sludge', 'Enigma Berry', 'Figy Berry', 'Gold Berry',
'Iapapa Berry', 'Kangaskhanite', 'Leftovers', 'Mago Berry', 'Medichamite', 'Normalium Z', 'Oran Berry', 'Rocky Helmet', 'Shell Bell',
'Sitrus Berry', 'Wiki Berry', 'Harvest + Rowap Berry', 'Harvest + Jaboca Berry', 'Shedinja + Sturdy',
],
onValidateSet(set) {
let template = this.getTemplate(set.species);
if (template.types.includes('Steel')) return [`${template.species} is a Steel-type, which is banned from Metronome Battle.`];
let bst = 0;
for (let stat in template.baseStats) {
// @ts-ignore
bst += template.baseStats[stat];
}
if (bst > 625) return [`${template.species} is banned.`, `(Pok\u00e9mon with a BST higher than 625 are banned)`];
let item = this.getItem(set.item);
if (set.item && item.megaStone) {
let bstMega = 0;
let megaTemplate = this.getTemplate(item.megaStone);
for (let stat in megaTemplate.baseStats) {
// @ts-ignore
bstMega += megaTemplate.baseStats[stat];
}
if (template.baseSpecies === item.megaEvolves && bstMega > 625) return [`${set.name || set.species}'s item ${item.name} is banned.`, `(Pok\u00e9mon with a BST higher than 625 are banned)`];
}
if (set.moves.length !== 1 || this.getMove(set.moves[0]).id !== 'metronome') return [`${set.name || set.species} has illegal moves.`, `(Pok\u00e9mon can only have one Metronome in their moveset)`];
},
},
{
name: "[Gen 7] Doubles Custom Game",
mod: 'gen7',
gameType: 'doubles',
searchShow: false,
canUseRandomTeam: true,
maxLevel: 9999,
trunc(n) { return Math.trunc(n); },
defaultLevel: 100,
debug: true,
teamLength: {
validate: [2, 24],
battle: 24,
},
// no restrictions, for serious (other than team preview)
ruleset: ['Team Preview', 'Cancel Mod'],
},
// Other Metagames
///////////////////////////////////////////////////////////////////
{
section: "OM of the Month",
column: 2,
},
{
name: "[Gen 7] Nature Swap",
desc: `Pokémon have their base stats swapped depending on their nature.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3612727/">Nature Swap</a>`,
],
mod: 'gen7',
ruleset: ['[Gen 7] OU'],
banlist: ['Blissey', 'Chansey', 'Cloyster', 'Hoopa-Unbound', 'Kyurem-Black', 'Stakataka'],
battle: {
natureModify(stats, set) {
let nature = this.getNature(set.nature);
let stat;
if (nature.plus) {
// @ts-ignore
stat = nature.plus;
// @ts-ignore
stats[stat] = Math.floor(stats[stat] * 1.1);
}
return stats;
},
},
onModifyTemplate(template, target, source, effect) {
if (!target) return;
if (effect && ['imposter', 'transform'].includes(effect.id)) return;
let nature = this.getNature(target.set.nature);
if (!nature.plus) return template;
let newStats = Object.assign({}, template.baseStats);
let swap = newStats[nature.plus];
// @ts-ignore
newStats[nature.plus] = newStats[nature.minus];
// @ts-ignore
newStats[nature.minus] = swap;
return Object.assign({}, template, {baseStats: newStats});
},
},
{
name: "[Gen 7] Follow the Leader",
desc: `The first Pokémon provides the moves and abilities for all other Pokémon on the team.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3603860/">Follow the Leader</a>`,
],
mod: 'gen7',
ruleset: ['[Gen 7] OU'],
banlist: ['Regigigas', 'Shedinja', 'Slaking', 'Smeargle', 'Imposter', 'Huge Power', 'Pure Power'],
checkLearnset(move, template, lsetData, set) {
// @ts-ignore
return set.follower ? null : this.checkLearnset(move, template, lsetData, set);
},
validateSet(set, teamHas) {
if (!teamHas.leader) {
let problems = this.validateSet(set, teamHas);
teamHas.leader = set.species;
return problems;
}
let leader = this.dex.deepClone(set);
leader.species = teamHas.leader;
let problems = this.validateSet(leader, teamHas);
if (problems) return problems;
set.ability = this.dex.getTemplate(set.species || set.name).abilities['0'];
// @ts-ignore
set.follower = true;
problems = this.validateSet(set, teamHas);
set.ability = leader.ability;
return problems;
},
},
{
section: "Other Metagames",
column: 2,
},
{
name: "[Gen 7] Balanced Hackmons",
desc: `Anything that can be hacked in-game and is usable in local battles is allowed.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3587475/">Balanced Hackmons</a>`,
`• <a href="https://www.smogon.com/forums/threads/3588586/">BH Suspects and Bans Discussion</a>`,
`• <a href="https://www.smogon.com/forums/threads/3593766/">BH Resources</a>`,
],
mod: 'gen7',
ruleset: ['Pokemon', 'Ability Clause', 'OHKO Clause', 'Evasion Moves Clause', 'CFZ Clause', 'Sleep Clause Mod', 'Endless Battle Clause', 'HP Percentage Mod', 'Cancel Mod', 'Team Preview'],
banlist: ['Groudon-Primal', 'Arena Trap', 'Contrary', 'Huge Power', 'Illusion', 'Innards Out', 'Magnet Pull', 'Moody', 'Parental Bond', 'Protean', 'Psychic Surge', 'Pure Power', 'Shadow Tag', 'Stakeout', 'Water Bubble', 'Wonder Guard', 'Gengarite', 'Chatter', 'Comatose + Sleep Talk'],
},
{
name: "[Gen 7] Mix and Mega",
desc: `Mega Stones and Primal Orbs can be used on almost any Pokémon with no Mega Evolution limit.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3587740/">Mix and Mega</a>`,
`• <a href="https://www.smogon.com/forums/threads/3591580/">Mix and Mega Resources</a>`,
],
mod: 'mixandmega',
ruleset: ['Pokemon', 'Standard', 'Mega Rayquaza Clause', 'Team Preview'],
banlist: ['Shadow Tag', 'Gengarite', 'Baton Pass', 'Electrify'],
restrictedStones: ['Beedrillite', 'Blazikenite', 'Kangaskhanite', 'Mawilite', 'Medichamite', 'Pidgeotite', 'Ultranecrozium Z'],
cannotMega: [
'Arceus', 'Deoxys', 'Deoxys-Attack', 'Deoxys-Speed', 'Dialga', 'Dragonite', 'Giratina', 'Groudon', 'Ho-Oh', 'Kyogre', 'Kyurem-Black',
'Kyurem-White', 'Landorus-Therian', 'Lugia', 'Lunala', 'Marshadow', 'Mewtwo', 'Naganadel', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane',
'Palkia', 'Pheromosa', 'Rayquaza', 'Regigigas', 'Reshiram', 'Slaking', 'Solgaleo', 'Xerneas', 'Yveltal', 'Zekrom',
],
onValidateTeam(team) {
/**@type {{[k: string]: true}} */
let itemTable = {};
for (const set of team) {
let item = this.getItem(set.item);
if (!item) continue;
if (itemTable[item.id] && item.megaStone) return ["You are limited to one of each Mega Stone.", "(You have more than one " + this.getItem(item).name + ")"];
if (itemTable[item.id] && ['blueorb', 'redorb'].includes(item.id)) return ["You are limited to one of each Primal Orb.", "(You have more than one " + this.getItem(item).name + ")"];
itemTable[item.id] = true;
}
},
onValidateSet(set, format) {
let template = this.getTemplate(set.species || set.name);
let item = this.getItem(set.item);
if (!item.megaEvolves && !['blueorb', 'redorb', 'ultranecroziumz'].includes(item.id)) return;
if (template.baseSpecies === item.megaEvolves || (template.baseSpecies === 'Groudon' && item.id === 'redorb') || (template.baseSpecies === 'Kyogre' && item.id === 'blueorb') || (template.species.substr(0, 9) === 'Necrozma-' && item.id === 'ultranecroziumz')) return;
let uberStones = format.restrictedStones || [];
let uberPokemon = format.cannotMega || [];
if (uberPokemon.includes(template.name) || set.ability === 'Power Construct' || uberStones.includes(item.name)) return ["" + template.species + " is not allowed to hold " + item.name + "."];
},
onBegin() {
for (const pokemon of this.getAllPokemon()) {
pokemon.m.originalSpecies = pokemon.baseTemplate.species;
}
},
onSwitchIn(pokemon) {
// @ts-ignore
let oMegaTemplate = this.getTemplate(pokemon.template.originalMega);
if (oMegaTemplate.exists && pokemon.m.originalSpecies !== oMegaTemplate.baseSpecies) {
// Place volatiles on the Pokémon to show its mega-evolved condition and details
this.add('-start', pokemon, oMegaTemplate.requiredItem || oMegaTemplate.requiredMove, '[silent]');
let oTemplate = this.getTemplate(pokemon.m.originalSpecies);
if (oTemplate.types.length !== pokemon.template.types.length || oTemplate.types[1] !== pokemon.template.types[1]) {
this.add('-start', pokemon, 'typechange', pokemon.template.types.join('/'), '[silent]');
}
}
},
onSwitchOut(pokemon) {
// @ts-ignore
let oMegaTemplate = this.getTemplate(pokemon.template.originalMega);
if (oMegaTemplate.exists && pokemon.m.originalSpecies !== oMegaTemplate.baseSpecies) {
this.add('-end', pokemon, oMegaTemplate.requiredItem || oMegaTemplate.requiredMove, '[silent]');
}
},
},
{
name: "[Gen 7] Almost Any Ability",
desc: `Pokémon can use any ability, barring the few that are restricted to their natural users.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3587901/">Almost Any Ability</a>`,
`• <a href="https://www.smogon.com/forums/threads/3595753/">AAA Resources</a>`,
],
mod: 'gen7',
ruleset: ['[Gen 7] OU', 'Ability Clause', 'Ignore Illegal Abilities'],
banlist: ['Archeops', 'Dragonite', 'Hoopa-Unbound', 'Kartana', 'Keldeo', 'Kyurem-Black', 'Regigigas', 'Shedinja', 'Slaking', 'Terrakion', 'Weavile'],
unbanlist: ['Aegislash', 'Genesect', 'Landorus', 'Metagross-Mega', 'Naganadel'],
restrictedAbilities: [
'Comatose', 'Contrary', 'Fluffy', 'Fur Coat', 'Huge Power', 'Illusion', 'Imposter', 'Innards Out',
'Parental Bond', 'Protean', 'Pure Power', 'Simple', 'Speed Boost', 'Stakeout', 'Water Bubble', 'Wonder Guard',
],
onValidateSet(set, format) {
let restrictedAbilities = format.restrictedAbilities || [];
if (restrictedAbilities.includes(set.ability)) {
let template = this.getTemplate(set.species || set.name);
let legalAbility = false;
for (let i in template.abilities) {
// @ts-ignore
if (set.ability === template.abilities[i]) legalAbility = true;
}
if (!legalAbility) return ['The ability ' + set.ability + ' is banned on Pok\u00e9mon that do not naturally have it.'];
}
},
},
{
name: "[Gen 7] Camomons",
desc: `Pokémon change type to match their first two moves.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3598418/">Camomons</a>`,
],
mod: 'gen7',
// searchShow: false,
ruleset: ['[Gen 7] OU'],
banlist: ['Dragonite', 'Kartana', 'Kyurem-Black', 'Shedinja'],
onModifyTemplate(template, target, source, effect) {
if (!target) return; // Chat command
if (effect && ['imposter', 'transform'].includes(effect.id)) return;
let types = [...new Set(target.baseMoveSlots.slice(0, 2).map(move => this.getMove(move.id).type))];
return Object.assign({}, template, {types: types});
},
onSwitchIn(pokemon) {
this.add('-start', pokemon, 'typechange', pokemon.types.join('/'), '[silent]');
},
onAfterMega(pokemon) {
this.add('-start', pokemon, 'typechange', pokemon.types.join('/'), '[silent]');
},
},
{
name: "[Gen 7] STABmons",
desc: `Pokémon can use any move of their typing, in addition to the moves they can normally learn.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3587949/">STABmons</a>`,
],
mod: 'gen7',
searchShow: false,
ruleset: ['[Gen 7] OU', 'STABmons Move Legality'],
banlist: ['Aerodactyl-Mega', 'Blacephalon', 'Kartana', 'Komala', 'Kyurem-Black', 'Porygon-Z', 'Silvally', 'Tapu Koko', 'Tapu Lele', 'Thundurus-Base', 'King\'s Rock', 'Razor Fang'],
restrictedMoves: ['Acupressure', 'Belly Drum', 'Chatter', 'Extreme Speed', 'Geomancy', 'Lovely Kiss', 'Shell Smash', 'Shift Gear', 'Spore', 'Thousand Arrows'],
},
{
name: "[Gen 7] Tier Shift",
desc: "Pokémon below OU get all their stats boosted. UU/RUBL get +10, RU/NUBL get +20, NU/PUBL get +30, and PU or lower get +40.",
threads: [
"• <a href=\"https://www.smogon.com/forums/threads/3610073/\">Tier Shift</a>",
],
mod: 'gen7',
searchShow: false,
ruleset: ['[Gen 7] OU'],
banlist: ['Damp Rock', 'Deep Sea Tooth', 'Eviolite'],
onModifyTemplate(template, target, source, effect) {
if (!effect) return;
if (!template.abilities) return false;
/** @type {{[tier: string]: number}} */
let boosts = {
'UU': 10,
'RUBL': 10,
'RU': 20,
'NUBL': 20,
'NU': 30,
'PUBL': 30,
'PU': 40,
'NFE': 40,
'LC Uber': 40,
'LC': 40,
};
if (target.set.ability === 'Drizzle') return;
let pokemon = this.deepClone(template);
if (target.set.item) {
let item = this.getItem(target.set.item);
if (item.name === 'Kommonium Z' || item.name === 'Mewnium Z') return;
if (item.megaEvolves === pokemon.species) pokemon.tier = this.getTemplate(item.megaStone).tier;
}
if (pokemon.tier[0] === '(') pokemon.tier = pokemon.tier.slice(1, -1);
if (!(pokemon.tier in boosts)) return;
if (target.set.moves.includes('auroraveil')) pokemon.tier = 'UU';
if (target.set.ability === 'Drought') pokemon.tier = 'RU';
let boost = boosts[pokemon.tier];
for (let statName in pokemon.baseStats) {
if (statName === 'hp') continue;
pokemon.baseStats[statName] = this.clampIntRange(pokemon.baseStats[statName] + boost, 1, 255);
}
return pokemon;
},
},
{
name: "[Gen 7] Partners in Crime",
desc: `Doubles-based metagame where both active ally Pokémon share abilities and moves.`,
threads: [
`• <a href="https://www.smogon.com/forums/threads/3618488/">Partners in Crime</a>`,
],
mod: 'pic',
gameType: 'doubles',
// searchShow: false,
ruleset: ['[Gen 7] Doubles OU', 'Sleep Clause Mod'],
banlist: [
'Kangaskhanite', 'Mawilite', 'Medichamite',
'Huge Power', 'Imposter', 'Normalize', 'Pure Power', 'Wonder Guard', 'Mimic', 'Sketch', 'Sweet Scent', 'Transform',
],
onSwitchInPriority: 2,
onSwitchIn(pokemon) {
if (this.sides[0].active.every(ally => ally && !ally.fainted)) {
let p1a = this.sides[0].active[0], p1b = this.sides[0].active[1];
if (p1a.ability !== p1b.ability) {
let p1aInnate = 'ability' + p1b.ability;
p1a.volatiles[p1aInnate] = {id: p1aInnate, target: p1a};
let p1bInnate = 'ability' + p1a.ability;
p1b.volatiles[p1bInnate] = {id: p1bInnate, target: p1b};
}
}
if (this.sides[1].active.every(ally => ally && !ally.fainted)) {
let p2a = this.sides[1].active[0], p2b = this.sides[1].active[1];
if (p2a.ability !== p2b.ability) {
let p2a_innate = 'ability' + p2b.ability;
p2a.volatiles[p2a_innate] = {id: p2a_innate, target: p2a};
let p2b_innate = 'ability' + p2a.ability;
p2b.volatiles[p2b_innate] = {id: p2b_innate, target: p2b};
}
}
let ally = pokemon.side.active.find(ally => ally && ally !== pokemon && !ally.fainted);
if (ally && ally.ability !== pokemon.ability) {
if (!pokemon.m.innate) {
pokemon.m.innate = 'ability' + ally.ability;
delete pokemon.volatiles[pokemon.m.innate];
pokemon.addVolatile(pokemon.m.innate);
}
if (!ally.m.innate) {
ally.m.innate = 'ability' + pokemon.ability;
delete ally.volatiles[ally.m.innate];
ally.addVolatile(ally.m.innate);
}
}
},
onSwitchOut(pokemon) {
if (pokemon.m.innate) {
pokemon.removeVolatile(pokemon.m.innate);
delete pokemon.m.innate;
}
let ally = pokemon.side.active.find(ally => ally && ally !== pokemon && !ally.fainted);
if (ally && ally.m.innate) {
ally.removeVolatile(ally.m.innate);
delete ally.m.innate;
}
},
onFaint(pokemon) {
if (pokemon.m.innate) {
pokemon.removeVolatile(pokemon.m.innate);
delete pokemon.m.innate;
}
let ally = pokemon.side.active.find(ally => ally && ally !== pokemon && !ally.fainted);
if (ally && ally.m.innate) {
ally.removeVolatile(ally.m.innate);
delete ally.m.innate;
}
},
},
{
name: "[Gen 6] Gen-NEXT OU",
mod: 'gennext',
searchShow: false,
challengeShow: false,
ruleset: ['Pokemon', 'Standard NEXT', 'Team Preview'],
banlist: ['Uber'],
},
// Let's Go!
///////////////////////////////////////////////////////////////////
{
section: "Let's Go!",
column: 2,
},
{
name: "[Gen 7 Let's Go] Random Battle",
mod: 'letsgo',
team: 'random',
ruleset: ['Pokemon', 'Allow AVs', 'Sleep Clause Mod', 'HP Percentage Mod', 'Cancel Mod'],
},
{
name: "[Gen 7 Let's Go] OU",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3644015/">LGPE OverUsed</a>`,
],
mod: 'letsgo',
forcedLevel: 50,
ruleset: ['Pokemon', 'Species Clause', 'Nickname Clause', 'Evasion Moves Clause', 'OHKO Clause', 'Sleep Clause Mod', 'HP Percentage Mod', 'Cancel Mod', 'Team Preview'],
banlist: ['Illegal', 'Unreleased', 'Uber'],
},
{
name: "[Gen 7 Let's Go] Singles No Restrictions",
threads: [
`• <a href="https://www.smogon.com/forums/threads/3643931/">Let's Go! Discussion</a>`,
],
mod: 'letsgo',
searchShow: false,
ruleset: ['Pokemon', 'Allow AVs', 'Endless Battle Clause', 'Team Preview', 'HP Percentage Mod', 'Cancel Mod'],
banlist: ['Illegal', 'Unreleased'],
},
{
name: "[Gen 7 Let's Go] Custom Game",
mod: 'letsgo',
searchShow: false,
canUseRandomTeam: true,
debug: true,
maxLevel: 9999,
trunc(n) { return Math.trunc(n); },
defaultLevel: 100,
// no restrictions, for serious (other than team preview)
ruleset: ['Allow AVs', 'Team Preview', 'Cancel Mod'],
},
{
name: "[Gen 7 Let's Go] Doubles OU",
threads: [