forked from smogon/pokemon-showdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformats.ts
4358 lines (4259 loc) · 188 KB
/
formats.ts
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
// Note: This is the list of formats
// The rules that formats use are stored in data/rulesets.ts
/*
If you want to add custom formats, create a file in this folder named: "custom-formats.ts"
Paste the following code into the file and add your desired formats and their sections between the brackets:
--------------------------------------------------------------------------------
// Note: This is the list of formats
// The rules that formats use are stored in data/rulesets.ts
export const Formats: FormatList = [
];
--------------------------------------------------------------------------------
If you specify a section that already exists, your format will be added to the bottom of that section.
New sections will be added to the bottom of the specified column.
The column value will be ignored for repeat sections.
*/
export const Formats: import('../sim/dex-formats').FormatList = [
// S/V Singles
///////////////////////////////////////////////////////////////////
{
section: "S/V Singles",
},
{
name: "[Gen 9] Random Battle",
desc: `Randomized teams of Pokémon with sets that are generated to be competitively viable.`,
mod: 'gen9',
team: 'random',
ruleset: ['PotD', 'Obtainable', 'Species Clause', 'HP Percentage Mod', 'Cancel Mod', 'Sleep Clause Mod', 'Illusion Level Mod'],
},
{
name: "[Gen 9] Unrated Random Battle",
mod: 'gen9',
team: 'random',
challengeShow: false,
rated: false,
ruleset: ['Obtainable', 'Species Clause', 'HP Percentage Mod', 'Cancel Mod', 'Sleep Clause Mod', 'Illusion Level Mod'],
},
{
name: "[Gen 9] Free-For-All Random Battle",
mod: 'gen9',
team: 'random',
gameType: 'freeforall',
tournamentShow: false,
rated: false,
ruleset: ['Obtainable', 'Species Clause', 'HP Percentage Mod', 'Cancel Mod', 'Sleep Clause Mod', 'Illusion Level Mod'],
},
{
name: "[Gen 9] Random Battle (Blitz)",
mod: 'gen9',
team: 'random',
ruleset: ['[Gen 9] Random Battle', 'Blitz'],
},
{
name: "[Gen 9] Multi Random Battle",
mod: 'gen9',
team: 'random',
gameType: 'multi',
searchShow: false,
tournamentShow: false,
rated: false,
ruleset: [
'Max Team Size = 3',
'Obtainable', 'Species Clause', 'HP Percentage Mod', 'Cancel Mod', 'Sleep Clause Mod', 'Illusion Level Mod',
],
},
{
name: "[Gen 9] OU",
mod: 'gen9',
ruleset: ['Standard', 'Sleep Moves Clause', '!Sleep Clause Mod'],
banlist: ['Uber', 'AG', 'Arena Trap', 'Moody', 'Sand Veil', 'Shadow Tag', 'Snow Cloak', 'King\'s Rock', 'Razor Fang', 'Baton Pass', 'Last Respects', 'Shed Tail'],
},
{
name: "[Gen 9] Ubers",
mod: 'gen9',
ruleset: ['Standard'],
banlist: ['AG', 'Moody', 'King\'s Rock', 'Razor Fang', 'Baton Pass', 'Last Respects'],
},
{
name: "[Gen 9] UU",
mod: 'gen9',
ruleset: ['[Gen 9] OU'],
banlist: ['OU', 'UUBL'],
},
{
name: "[Gen 9] RU",
mod: 'gen9',
ruleset: ['[Gen 9] UU'],
banlist: ['UU', 'RUBL', 'Light Clay'],
},
{
name: "[Gen 9] NU",
mod: 'gen9',
ruleset: ['[Gen 9] RU'],
banlist: ['RU', 'NUBL', 'Drought', 'Quick Claw'],
},
{
name: "[Gen 9] PU",
mod: 'gen9',
ruleset: ['[Gen 9] NU'],
banlist: ['NU', 'PUBL', 'Damp Rock'],
},
{
name: "[Gen 9] LC",
mod: 'gen9',
ruleset: ['Little Cup', 'Standard'],
banlist: [
'Aipom', 'Basculin-White-Striped', 'Cutiefly', 'Diglett-Base', 'Dunsparce', 'Duraludon', 'Flittle', 'Gastly', 'Girafarig', 'Gligar',
'Meditite', 'Misdreavus', 'Murkrow', 'Porygon', 'Qwilfish-Hisui', 'Rufflet', 'Scraggy', 'Scyther', 'Sneasel', 'Sneasel-Hisui',
'Snivy', 'Stantler', 'Voltorb-Hisui', 'Vulpix', 'Vulpix-Alola', 'Yanma', 'Moody', 'Baton Pass', 'Sticky Web',
],
},
{
name: "[Gen 9] Monotype",
mod: 'gen9',
ruleset: ['Standard', 'Evasion Abilities Clause', 'Same Type Clause', 'Terastal Clause'],
banlist: [
'Annihilape', 'Arceus', 'Baxcalibur', 'Calyrex-Ice', 'Calyrex-Shadow', 'Chi-Yu', 'Chien-Pao', 'Blaziken', 'Deoxys-Normal', 'Deoxys-Attack',
'Dialga', 'Dialga-Origin', 'Espathra', 'Eternatus', 'Giratina', 'Giratina-Origin', 'Groudon', 'Ho-Oh', 'Iron Bundle', 'Kingambit', 'Koraidon',
'Kyogre', 'Kyurem-Black', 'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Mewtwo', 'Miraidon', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane',
'Palafin', 'Palkia', 'Palkia-Origin', 'Rayquaza', 'Reshiram', 'Shaymin-Sky', 'Solgaleo', 'Ursaluna-Bloodmoon', 'Urshifu-Single-Strike',
'Zacian', 'Zacian-Crowned', 'Zamazenta-Crowned', 'Zekrom', 'Moody', 'Shadow Tag', 'Booster Energy', 'Damp Rock', 'Focus Band', 'King\'s Rock',
'Quick Claw', 'Razor Fang', 'Smooth Rock', 'Acupressure', 'Baton Pass', 'Last Respects', 'Shed Tail',
],
},
{
name: "[Gen 9] CAP",
desc: "The Create-A-Pokémon project is a community dedicated to exploring and understanding the competitive Pokémon metagame by designing, creating, and playtesting new Pokémon concepts.",
mod: 'gen9',
ruleset: ['[Gen 9] OU', '+CAP'],
banlist: ['Crucibellite', 'Rage Fist'],
},
{
name: "[Gen 9] BSS Reg G",
mod: 'gen9',
bestOfDefault: true,
ruleset: ['Flat Rules', '!! Adjust Level = 50', 'Min Source Gen = 9', 'VGC Timer', 'Limit One Restricted'],
restricted: ['Restricted Legendary'],
},
{
name: "[Gen 9] BSS Reg H",
mod: 'gen9',
bestOfDefault: true,
ruleset: ['Flat Rules', '!! Adjust Level = 50', 'Min Source Gen = 9', 'VGC Timer'],
banlist: ['Sub-Legendary', 'Paradox', 'Gouging Fire', 'Iron Boulder', 'Iron Crown', 'Raging Bolt'],
},
{
name: "[Gen 9] Custom Game",
mod: 'gen9',
searchShow: false,
debug: true,
battle: {trunc: Math.trunc},
// no restrictions, for serious (other than team preview)
ruleset: ['Team Preview', 'Cancel Mod', 'Max Team Size = 24', 'Max Move Count = 24', 'Max Level = 9999', 'Default Level = 100'],
},
// S/V Doubles
///////////////////////////////////////////////////////////////////
{
section: "S/V Doubles",
},
{
name: "[Gen 9] Random Doubles Battle",
mod: 'gen9',
gameType: 'doubles',
team: 'random',
ruleset: ['PotD', 'Obtainable', 'Species Clause', 'HP Percentage Mod', 'Cancel Mod', 'Illusion Level Mod', 'Sleep Clause Mod'],
},
{
name: "[Gen 9] Doubles OU",
mod: 'gen9',
gameType: 'doubles',
ruleset: ['Standard Doubles', 'Evasion Abilities Clause'],
banlist: ['DUber', 'Shadow Tag'],
},
{
name: "[Gen 9] Doubles Ubers",
mod: 'gen9',
gameType: 'doubles',
ruleset: ['Standard Doubles', '!Gravity Sleep Clause'],
},
{
name: "[Gen 9] Doubles UU",
mod: 'gen9',
gameType: 'doubles',
ruleset: ['[Gen 9] Doubles OU'],
banlist: ['DOU', 'DBL'],
},
{
name: "[Gen 9] Doubles LC",
mod: 'gen9',
gameType: 'doubles',
searchShow: false,
ruleset: ['Standard Doubles', 'Little Cup', 'Sleep Clause Mod'],
banlist: ['Basculin-White-Striped', 'Dunsparce', 'Duraludon', 'Girafarig', 'Gligar', 'Murkrow', 'Qwilfish-Hisui', 'Scyther', 'Sneasel', 'Sneasel-Hisui', 'Vulpix', 'Vulpix-Alola', 'Yanma'],
},
{
name: "[Gen 9] VGC 2023 Reg D",
mod: 'gen9predlc',
gameType: 'doubles',
searchShow: false,
bestOfDefault: true,
ruleset: ['Flat Rules', '!! Adjust Level = 50', 'Min Source Gen = 9', 'VGC Timer', 'Open Team Sheets'],
banlist: ['Walking Wake', 'Iron Leaves'],
},
{
name: "[Gen 9] VGC 2024 Reg H",
mod: 'gen9',
gameType: 'doubles',
bestOfDefault: true,
ruleset: ['Flat Rules', '!! Adjust Level = 50', 'Min Source Gen = 9', 'VGC Timer', 'Open Team Sheets'],
banlist: ['Sub-Legendary', 'Paradox', 'Gouging Fire', 'Iron Boulder', 'Iron Crown', 'Raging Bolt'],
},
{
name: "[Gen 9] VGC 2025 Reg G",
mod: 'gen9',
gameType: 'doubles',
bestOfDefault: true,
ruleset: ['Flat Rules', '!! Adjust Level = 50', 'Min Source Gen = 9', 'VGC Timer', 'Open Team Sheets', 'Limit One Restricted'],
restricted: ['Restricted Legendary'],
},
{
name: "[Gen 9] VGC 2025 Reg G (Bo3)",
mod: 'gen9',
gameType: 'doubles',
bestOfDefault: true,
ruleset: ['Flat Rules', '!! Adjust Level = 50', 'Min Source Gen = 9', 'VGC Timer', 'Force Open Team Sheets', 'Best of = 3', 'Limit One Restricted'],
restricted: ['Restricted Legendary'],
},
{
name: "[Gen 9] Doubles Custom Game",
mod: 'gen9',
gameType: 'doubles',
searchShow: false,
battle: {trunc: Math.trunc},
debug: true,
// no restrictions, for serious (other than team preview)
ruleset: ['Team Preview', 'Cancel Mod', 'Max Team Size = 24', 'Max Move Count = 24', 'Max Level = 9999', 'Default Level = 100'],
},
// S/V Doubles
///////////////////////////////////////////////////////////////////
{
section: "Unofficial Metagames",
},
{
name: "[Gen 9] 1v1",
desc: `Bring three Pokémon to Team Preview and choose one to battle.`,
mod: 'gen9',
ruleset: [
'Picked Team Size = 1', 'Max Team Size = 3',
'Standard', 'Terastal Clause', 'Sleep Moves Clause', 'Accuracy Moves Clause', '!Sleep Clause Mod',
],
banlist: [
'Arceus', 'Archaludon', 'Calyrex-Ice', 'Calyrex-Shadow', 'Chi-Yu', 'Cinderace', 'Deoxys', 'Deoxys-Attack', 'Deoxys-Defense', 'Deoxys-Speed', 'Dialga',
'Dialga-Origin', 'Dragonite', 'Eternatus', 'Flutter Mane', 'Gholdengo', 'Giratina', 'Giratina-Origin', 'Gouging Fire', 'Groudon', 'Ho-Oh', 'Jirachi',
'Koraidon', 'Kyogre', 'Kyurem-Black', 'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Meloetta', 'Mew', 'Mewtwo', 'Mimikyu', 'Miraidon', 'Necrozma',
'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Ogerpon-Cornerstone', 'Ogerpon-Hearthflame', 'Palkia', 'Palkia-Origin', 'Rayquaza', 'Reshiram',
'Scream Tail', 'Shaymin-Sky', 'Snorlax', 'Solgaleo', 'Terapagos', 'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned', 'Zekrom', 'Moody',
'Focus Band', 'Focus Sash', 'King\'s Rock', 'Razor Fang', 'Quick Claw', 'Acupressure', 'Perish Song',
],
},
{
name: "[Gen 9] 2v2 Doubles",
desc: `Double battle where you bring four Pokémon to Team Preview and choose only two.`,
mod: 'gen9',
gameType: 'doubles',
ruleset: [
'Picked Team Size = 2', 'Max Team Size = 4',
'Standard Doubles', 'Accuracy Moves Clause', 'Terastal Clause', 'Sleep Clause Mod', 'Evasion Items Clause',
],
banlist: [
'Arceus', 'Calyrex-Ice', 'Calyrex-Shadow', 'Chi-Yu', 'Deoxys-Attack', 'Dialga', 'Dialga-Origin', 'Eternatus', 'Giratina', 'Giratina-Origin', 'Groudon',
'Ho-Oh', 'Koraidon', 'Kyogre', 'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Mewtwo', 'Miraidon', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Palkia',
'Palkia-Origin', 'Rayquaza', 'Reshiram', 'Solgaleo', 'Urshifu', 'Urshifu-Rapid-Strike', 'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned',
'Zekrom', 'Commander', 'Moody', 'Focus Sash', 'King\'s Rock', 'Razor Fang', 'Ally Switch', 'Final Gambit', 'Perish Song', 'Swagger',
],
},
{
name: "[Gen 9] Anything Goes",
mod: 'gen9',
ruleset: ['Min Source Gen = 9', 'Obtainable', 'Team Preview', 'HP Percentage Mod', 'Cancel Mod', 'Endless Battle Clause'],
},
{
name: "[Gen 9] Ubers UU",
mod: 'gen9',
ruleset: ['[Gen 9] Ubers'],
banlist: [
// Ubers OU
'Arceus-Normal', 'Arceus-Fairy', 'Arceus-Ground', 'Calyrex-Ice', 'Chien-Pao', 'Deoxys-Attack', 'Eternatus', 'Flutter Mane', 'Giratina-Origin', 'Glimmora',
'Gliscor', 'Grimmsnarl', 'Groudon', 'Ho-Oh', 'Iron Bundle', 'Iron Treads', 'Kingambit', 'Koraidon', 'Kyogre', 'Kyurem-Black', 'Landorus-Therian', 'Lunala',
'Miraidon', 'Necrozma-Dusk-Mane', 'Rayquaza', 'Ribombee', 'Skeledirge', 'Ting-Lu', 'Zacian-Crowned',
// Ubers UUBL + Lunala
'Arceus-Dragon', 'Arceus-Fire', 'Arceus-Flying', 'Arceus-Ghost', 'Arceus-Steel', 'Arceus-Water', 'Necrozma-Dawn-Wings', 'Shaymin-Sky', 'Zekrom',
],
},
{
name: "[Gen 9] ZU",
mod: 'gen9',
ruleset: ['[Gen 9] PU'],
banlist: ['PU', 'ZUBL', 'Unburden'],
},
{
name: "[Gen 9] Free-For-All",
mod: 'gen9',
gameType: 'freeforall',
rated: false,
tournamentShow: false,
ruleset: ['Standard', 'Sleep Moves Clause', '!Sleep Clause Mod', '!Evasion Items Clause'],
banlist: [
'Annihilape', 'Arceus', 'Calyrex-Ice', 'Calyrex-Shadow', 'Chi-Yu', 'Chien-Pao', 'Darkrai', 'Deoxys-Normal', 'Deoxys-Attack', 'Dialga', 'Dialga-Origin',
'Dondozo', 'Eternatus', 'Flutter Mane', 'Giratina', 'Giratina-Origin', 'Groudon', 'Ho-Oh', 'Hoopa-Unbound', 'Iron Bundle', 'Koraidon', 'Kyogre', 'Kyurem-White',
'Landorus-Incarnate', 'Lugia', 'Lunala', 'Magearna', 'Mewtwo', 'Miraidon', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Ogerpon-Hearthflame', 'Palkia',
'Palkia-Origin', 'Rayquaza', 'Reshiram', 'Shaymin-Sky', 'Solgaleo', 'Spectrier', 'Terapagos', 'Ursaluna', 'Ursaluna-Bloodmoon', 'Urshifu', 'Urshifu-Rapid-Strike',
'Zacian', 'Zacian-Crowned', 'Zekrom', 'Moody', 'Shadow Tag', 'Toxic Chain', 'Toxic Debris', 'Acupressure', 'Aromatic Mist', 'Baton Pass', 'Coaching',
'Court Change', 'Decorate', 'Dragon Cheer', 'Final Gambit', 'Flatter', 'Fling', 'Floral Healing', 'Follow Me', 'Heal Pulse', 'Heart Swap', 'Last Respects',
'Malignant Chain', 'Poison Fang', 'Rage Powder', 'Skill Swap', 'Spicy Extract', 'Swagger', 'Toxic', 'Toxic Spikes',
],
},
{
name: "[Gen 9] LC UU",
mod: 'gen9',
searchShow: false,
ruleset: ['[Gen 9] LC'],
banlist: [
'Diglett-Alola', 'Drilbur', 'Foongus', 'Glimmet', 'Gothita', 'Grookey', 'Growlithe-Hisui', 'Impidimp', 'Koffing',
'Mareanie', 'Mienfoo', 'Mudbray', 'Pawniard', 'Shellder', 'Stunky', 'Tentacool', 'Timburr', 'Tinkatink', 'Toedscool',
'Torchic', 'Trapinch', 'Vullaby',
],
},
{
name: "[Gen 9] NFE",
desc: `Only Pokémon that can evolve are allowed.`,
mod: 'gen9',
searchShow: false,
ruleset: ['Standard OMs', 'Not Fully Evolved', 'Sleep Moves Clause', 'Terastal Clause'],
banlist: [
'Basculin-White-Striped', 'Bisharp', 'Chansey', 'Combusken', 'Dipplin', 'Duraludon', 'Electabuzz', 'Gligar', 'Gurdurr',
'Haunter', 'Magmar', 'Magneton', 'Porygon2', 'Primeape', 'Qwilfish-Hisui', 'Rhydon', 'Scyther', 'Sneasel', 'Sneasel-Hisui',
'Ursaring', 'Vulpix-Base', 'Arena Trap', 'Magnet Pull', 'Shadow Tag', 'Baton Pass',
],
},
// Pet Mods
///////////////////////////////////////////////////////////////////
{
section: "Pet Mods",
},
{
name: "[Gen 9] Little Colosseum LC",
desc: `A Little Cup metagame that aims to buff weaker Pokemon and nerf LC Ubers to create a more diverse metagame.`,
mod: 'littlecolosseum',
ruleset: ['Little Cup', 'Standard'],
banlist: [
'Aipom', 'Basculin-White-Striped', 'Diglett-Base', 'Dunsparce', 'Duraludon', 'Flittle', 'Girafarig', 'Gligar',
'Meditite', 'Misdreavus', 'Murkrow', 'Porygon', 'Qwilfish-Hisui', 'Rufflet', 'Scraggy', 'Scyther', 'Sneasel', 'Sneasel-Hisui',
'Snivy', 'Stantler', 'Vulpix', 'Vulpix-Alola', 'Yanma', 'Moody', 'Baton Pass', 'Sticky Web',
],
onBegin() {
this.add('-message', `Welcome to Little Colosseum!`);
this.add('-message', `This is a Generation 9 LC-based Pet Mod where multiple Pokemon have been reimagined in order to fit the LC metagame.`);
this.add('-message', `You can find our thread and metagame resources here:`);
this.add('-message', `https://www.smogon.com/forums/threads/3749020/`);
},
onSwitchIn(pokemon) {
this.add('-start', pokemon, 'typechange', (pokemon.illusion || pokemon).getTypes(true).join('/'), '[silent]');
pokemon.apparentType = pokemon.getTypes(true).join('/');
},
},
{
name: "[Gen 2] GSC Doubles",
desc: `A Gen 2 metagame that adds doubles to the game.`,
mod: 'gen2doubles',
gameType: 'doubles',
ruleset: ['Standard Doubles', 'Swagger Clause'],
banlist: ['Uber', 'Bright Powder', 'King\'s Rock', 'Quick Claw'],
onBegin() {
this.add('-message', `Welcome to GSC Doubles!`);
this.add('-message', `This is a Generation 2 Pet Mod that brings the Doubles game mode introduced in Generation 3 back in time to GSC.`);
this.add('-message', `You can find our metagame resources here:`);
this.add('-message', `https://www.smogon.com/forums/threads/3755811/`);
},
},
// Draft League
///////////////////////////////////////////////////////////////////
{
section: "Draft",
column: 1,
},
{
name: "[Gen 9] Draft",
mod: 'gen9',
searchShow: false,
teraPreviewDefault: true,
ruleset: ['Standard Draft', 'Min Source Gen = 9'],
},
{
name: "[Gen 9] 6v6 Doubles Draft",
mod: 'gen9',
gameType: 'doubles',
searchShow: false,
teraPreviewDefault: true,
ruleset: ['Standard Draft', '!Sleep Clause Mod', '!Evasion Clause', 'Min Source Gen = 9'],
},
{
name: "[Gen 9] 4v4 Doubles Draft",
mod: 'gen9',
gameType: 'doubles',
searchShow: false,
bestOfDefault: true,
teraPreviewDefault: true,
ruleset: ['Standard Draft', 'Item Clause = 1', 'VGC Timer', '!Sleep Clause Mod', '!OHKO Clause', '!Evasion Clause', 'Adjust Level = 50', 'Picked Team Size = 4', 'Min Source Gen = 9'],
},
{
name: "[Gen 9] NatDex Draft",
mod: 'gen9',
searchShow: false,
teraPreviewDefault: true,
ruleset: ['Standard Draft', '+Unobtainable', '+Past'],
},
{
name: "[Gen 9] NatDex 6v6 Doubles Draft",
mod: 'gen9',
gameType: 'doubles',
searchShow: false,
teraPreviewDefault: true,
ruleset: ['[Gen 9] 6v6 Doubles Draft', '+Unobtainable', '+Past', '!! Min Source Gen = 3'],
},
{
name: "[Gen 9] NatDex LC Draft",
mod: 'gen9',
searchShow: false,
teraPreviewDefault: true,
ruleset: ['[Gen 9] NatDex Draft', 'Item Clause = 2', 'Little Cup'],
banlist: ['Dragon Rage', 'Sonic Boom'],
},
{
name: "[Gen 8] Galar Dex Draft",
mod: 'gen8',
searchShow: false,
ruleset: ['Standard Draft', 'Dynamax Clause'],
},
{
name: "[Gen 8] NatDex Draft",
mod: 'gen8',
searchShow: false,
ruleset: ['Standard Draft', 'Dynamax Clause', '+Past'],
},
{
name: "[Gen 8] NatDex 4v4 Doubles Draft",
mod: 'gen8',
gameType: 'doubles',
searchShow: false,
ruleset: ['Standard Draft', 'Item Clause = 1', '!Sleep Clause Mod', '!OHKO Clause', '!Evasion Moves Clause', 'Adjust Level = 50', 'Picked Team Size = 4', '+Past'],
},
{
name: "[Gen 7] Draft",
mod: 'gen7',
searchShow: false,
ruleset: ['Standard Draft', '+LGPE'],
},
{
name: "[Gen 6] Draft",
mod: 'gen6',
searchShow: false,
ruleset: ['Standard Draft', 'Moody Clause', 'Swagger Clause'],
banlist: ['Soul Dew'],
},
{
name: "[Gen 3] Draft",
mod: 'gen3',
searchShow: false,
ruleset: ['Standard Draft', 'Swagger Clause', 'DryPass Clause', '!Team Preview'],
banlist: ['King\'s Rock', 'Quick Claw', 'Assist'],
},
// OM of the Month
///////////////////////////////////////////////////////////////////
{
section: "OM of the Month",
column: 2,
},
{
name: "[Gen 9] Twisted Dimension",
desc: `Trick Room is always active. Using Trick Room reverts the playing field to normal for 5 turns.`,
mod: 'gen9',
ruleset: ['Standard OMs', 'Evasion Abilities Clause', 'Evasion Items Clause', 'Sleep Moves Clause', 'Terastal Clause', 'Twisted Dimension Mod', 'Adjust Level = 100'],
banlist: [
'Arceus', 'Calyrex-Ice', 'Calyrex-Shadow', 'Conkeldurr', 'Dialga', 'Dialga-Origin', 'Eternatus', 'Ho-Oh', 'Glastrier', 'Groudon', 'Koraidon', 'Kyogre', 'Kyurem-Black',
'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Mewtwo', 'Miraidon', 'Palkia', 'Palkia-Origin', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Rayquaza', 'Reshiram',
'Torkoal', 'Zekrom', 'Arena Trap', 'Moody', 'Shadow Tag', 'Iron Ball', 'King\'s Rock', 'Power Anklet', 'Power Band', 'Power Belt', 'Power Bracer', 'Power Lens',
'Power Weight', 'Razor Fang', 'Baton Pass', 'Final Gambit', 'Last Respects', 'Shed Tail',
],
},
{
name: "[Gen 9] Mix and Mega Doubles",
desc: `Mega evolve any Pokémon with any mega stone, or transform them with Primal orbs, Origin orbs, and Rusted items with no limit. Mega and Primal boosts based on form changes from gen 7. Also Doubles.`,
mod: 'mixandmega',
gameType: 'doubles',
ruleset: ['Standard OMs', 'Gravity Sleep Clause', 'Terastal Clause'],
banlist: [
'Calyrex-Shadow', 'Miraidon', 'Moody', 'Shadow Tag', 'Banettite', 'Beedrillite', 'Blazikenite', 'Blue Orb', 'Gengarite',
'Kangaskhanite', 'Mawilite', 'Medichamite', 'Pidgeotite', 'Red Orb',
],
restricted: [
'Arceus', 'Calyrex-Ice', 'Deoxys-Normal', 'Deoxys-Attack', 'Dialga', 'Dondozo', 'Eternatus', 'Flutter Mane', 'Giratina', 'Groudon', 'Ho-Oh', 'Koraidon',
'Kyogre', 'Kyurem-Black', 'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Mewtwo', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Palkia', 'Rayquaza',
'Regigigas', 'Reshiram', 'Slaking', 'Solgaleo', 'Ursaluna-Bloodmoon', 'Urshifu-Rapid-Strike', 'Zacian', 'Zamazenta', 'Zekrom',
],
onValidateTeam(team) {
const itemTable = new Set<ID>();
for (const set of team) {
const item = this.dex.items.get(set.item);
if (!item.megaStone && !item.onPrimal && !item.forcedForme?.endsWith('Origin') &&
!item.name.startsWith('Rusted') && !item.name.endsWith('Mask')) continue;
const natdex = this.ruleTable.has('standardnatdex');
if (natdex && item.id !== 'ultranecroziumz') continue;
const species = this.dex.species.get(set.species);
if (species.isNonstandard && !this.ruleTable.has(`+pokemontag:${this.toID(species.isNonstandard)}`)) {
return [`${species.baseSpecies} does not exist in gen 9.`];
}
const canUseNativeItem = !item.megaStone && !item.onPrimal &&
item.itemUser && (item.itemUser.includes(species.name) ||
(species.otherFormes && item.itemUser.includes(species.otherFormes[0])));
if (canUseNativeItem ||
(natdex && species.name.startsWith('Necrozma-') && item.id === 'ultranecroziumz')) {
continue;
}
if (this.ruleTable.isRestrictedSpecies(species) || this.toID(set.ability) === 'powerconstruct') {
return [`${species.name} is not allowed to hold ${item.name}.`];
}
if (itemTable.has(item.id)) {
return [
`You are limited to one of each mega stone/orb/rusted item/sinnoh item/mask.`,
`(You have more than one ${item.name})`,
];
}
itemTable.add(item.id);
}
},
onBegin() {
for (const pokemon of this.getAllPokemon()) {
pokemon.m.originalSpecies = pokemon.baseSpecies.name;
}
},
onSwitchIn(pokemon) {
const originalFormeSpecies = this.dex.species.get((pokemon.species as any).originalSpecies);
if (originalFormeSpecies.exists && pokemon.m.originalSpecies !== originalFormeSpecies.baseSpecies) {
// Place volatiles on the Pokémon to show its mega-evolved condition and details
this.add('-start', pokemon, originalFormeSpecies.requiredItem || originalFormeSpecies.requiredMove, '[silent]');
const oSpecies = this.dex.species.get(pokemon.m.originalSpecies);
if (oSpecies.types.length !== pokemon.species.types.length || oSpecies.types[1] !== pokemon.species.types[1]) {
this.add('-start', pokemon, 'typechange', pokemon.species.types.join('/'), '[silent]');
}
}
},
onSwitchOut(pokemon) {
const oMegaSpecies = this.dex.species.get((pokemon.species as any).originalSpecies);
if (oMegaSpecies.exists && pokemon.m.originalSpecies !== oMegaSpecies.baseSpecies) {
this.add('-end', pokemon, oMegaSpecies.requiredItem || oMegaSpecies.requiredMove, '[silent]');
}
},
},
{
name: "[Gen 9] Godly Gift",
desc: `Each Pokémon receives one base stat from a God (Restricted Pokémon) depending on its position in the team. If there is no restricted Pokémon, it uses the Pokémon in the first slot.`,
mod: 'gen9',
ruleset: ['Standard OMs', 'Sleep Moves Clause', 'Godly Gift Mod'],
banlist: [
'Blissey', 'Calyrex-Shadow', 'Chansey', 'Deoxys-Attack', 'Koraidon', 'Kyurem-Black', 'Miraidon', 'Arena Trap', 'Huge Power', 'Moody', 'Pure Power', 'Shadow Tag',
'Swift Swim', 'Bright Powder', 'Focus Band', 'King\'s Rock', 'Quick Claw', 'Razor Fang', 'Baton Pass', 'Last Respects', 'Shed Tail',
],
restricted: [
'Alomomola', 'Annihilape', 'Arceus', 'Baxcalibur', 'Calyrex-Ice', 'Chien-Pao', 'Chi-Yu', 'Crawdaunt', 'Deoxys-Normal', 'Deoxys-Speed', 'Dialga', 'Dialga-Origin', 'Dragapult',
'Espathra', 'Eternatus', 'Flutter Mane', 'Gholdengo', 'Giratina', 'Giratina-Origin', 'Gliscor', 'Gouging Fire', 'Groudon', 'Hawlucha', 'Ho-Oh', 'Iron Bundle', 'Kingambit',
'Kyogre', 'Kyurem', 'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Mewtwo', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Ogerpon-Hearthflame', 'Palafin', 'Palkia', 'Palkia-Origin',
'Raging Bolt', 'Rayquaza', 'Regieleki', 'Reshiram', 'Serperior', 'Shaymin-Sky', 'Smeargle', 'Solgaleo', 'Spectrier', 'Terapagos', 'Toxapex', 'Ursaluna', 'Ursaluna-Bloodmoon',
'Volcarona', 'Zacian', 'Zacian-Crowned', 'Zamazenta-Crowned', 'Zekrom',
],
},
// Other Metagames
///////////////////////////////////////////////////////////////////
{
section: "Other Metagames",
column: 2,
},
{
name: "[Gen 9] Almost Any Ability",
desc: `Pokémon have access to almost any ability.`,
mod: 'gen9',
ruleset: ['Standard OMs', '!Obtainable Abilities', 'Ability Clause = 1', 'Sleep Moves Clause', 'Terastal Clause'],
banlist: [
'Annihilape', 'Arceus', 'Baxcalibur', 'Calyrex-Ice', 'Calyrex-Shadow', 'Darkrai', 'Deoxys-Normal', 'Deoxys-Attack', 'Dialga', 'Dialga-Origin', 'Dragapult', 'Dragonite',
'Enamorus-Incarnate', 'Eternatus', 'Flutter Mane', 'Giratina', 'Giratina-Origin', 'Gouging Fire', 'Groudon', 'Ho-Oh', 'Hoopa-Unbound', 'Iron Bundle', 'Iron Valiant', 'Keldeo',
'Koraidon', 'Kyogre', 'Kyurem', 'Kyurem-Black', 'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Mewtwo', 'Miraidon', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Noivern',
'Palkia', 'Palkia-Origin', 'Raging Bolt', 'Rayquaza', 'Regigigas', 'Reshiram', 'Shaymin-Sky', 'Slaking', 'Sneasler', 'Solgaleo', 'Spectrier', 'Urshifu', 'Urshifu-Rapid-Strike',
'Volcarona', 'Walking Wake', 'Weavile', 'Zacian', 'Zacian-Crowned', 'Zekrom', 'Arena Trap', 'Comatose', 'Contrary', 'Fur Coat', 'Good as Gold', 'Gorilla Tactics', 'Huge Power',
'Ice Scales', 'Illusion', 'Imposter', 'Innards Out', 'Magic Bounce', 'Magnet Pull', 'Moody', 'Neutralizing Gas', 'Orichalcum Pulse', 'Parental Bond', 'Poison Heal', 'Pure Power',
'Shadow Tag', 'Simple', 'Speed Boost', 'Stakeout', 'Toxic Debris', 'Triage', 'Unburden', 'Water Bubble', 'Wonder Guard', 'King\'s Rock', 'Razor Fang', 'Baton Pass',
'Last Respects', 'Shed Tail',
],
},
{
name: "[Gen 9] Balanced Hackmons",
desc: `Anything directly hackable onto a set (EVs, IVs, forme, ability, item, and move) and is usable in local battles is allowed.`,
mod: 'gen9',
ruleset: [
'OHKO Clause', 'Evasion Clause', 'Species Clause', 'Team Preview', 'HP Percentage Mod', 'Cancel Mod', 'Sleep Moves Clause',
'Endless Battle Clause', 'Hackmons Forme Legality', 'Species Reveal Clause', 'Terastal Clause',
],
banlist: [
'Calyrex-Shadow', 'Deoxys-Attack', 'Diancie-Mega', 'Gengar-Mega', 'Groudon-Primal', 'Kartana', 'Mewtwo-Mega-X', 'Mewtwo-Mega-Y', 'Rayquaza-Mega',
'Regigigas', 'Shedinja', 'Slaking', 'Arena Trap', 'Comatose', 'Contrary', 'Gorilla Tactics', 'Hadron Engine', 'Huge Power', 'Illusion', 'Innards Out',
'Libero', 'Liquid Ooze', 'Magnet Pull', 'Moody', 'Neutralizing Gas', 'Orichalcum Pulse', 'Parental Bond', 'Poison Heal', 'Protean', 'Pure Power',
'Shadow Tag', 'Stakeout', 'Water Bubble', 'Wonder Guard', 'Baton Pass', 'Belly Drum', 'Ceaseless Edge', 'Clangorous Soul', 'Dire Claw', 'Electro Shot',
'Fillet Away', 'Imprison', 'Last Respects', 'Lumina Crash', 'No Retreat', 'Photon Geyser', 'Quiver Dance', 'Rage Fist', 'Revival Blessing', 'Shed Tail',
'Substitute', 'Shell Smash', 'Tail Glow',
],
},
{
name: "[Gen 9] Inheritance",
desc: `Pokémon may use the ability and moves of another, as long as they forfeit their own learnset.`,
mod: 'gen9',
ruleset: ['Standard OMs', 'Ability Clause = 1', 'Sleep Moves Clause', 'Terastal Clause'],
banlist: [
'Arceus', 'Calyrex-Ice', 'Calyrex-Shadow', 'Chien-Pao', 'Cresselia', 'Deoxys-Normal', 'Deoxys-Attack', 'Dialga', 'Dialga-Origin', 'Dondozo', 'Dragapult', 'Eternatus',
'Flutter Mane', 'Giratina', 'Giratina-Origin', 'Groudon', 'Hoopa-Unbound', 'Ho-Oh', 'Iron Bundle', 'Iron Valiant', 'Koraidon', 'Kyogre', 'Kyurem', 'Kyurem-Black',
'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Mewtwo', 'Miraidon', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Palkia', 'Palkia-Origin', 'Pecharunt', 'Rayquaza',
'Regieleki', 'Regigigas', 'Reshiram', 'Roaring Moon', 'Sableye', 'Scream Tail', 'Shaymin-Sky', 'Slaking', 'Smeargle', 'Solgaleo', 'Spectrier', 'Urshifu-Single-Strike',
'Ursaluna-Base', 'Weavile', 'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned', 'Zekrom', 'Arena Trap', 'Drizzle', 'Drought', 'Good as Gold', 'Huge Power',
'Imposter', 'Magic Bounce', 'Magnet Pull', 'Moody', 'Neutralizing Gas', 'Poison Heal', 'Pure Power', 'Shadow Tag', 'Sheer Force', 'Speed Boost', 'Stakeout', 'Water Bubble',
'King\'s Rock', 'Razor Fang', 'Baton Pass', 'Ceaseless Edge', 'Fillet Away', 'Last Respects', 'Quiver Dance', 'Rage Fist', 'Shed Tail', 'Shell Smash',
],
getEvoFamily(speciesid) {
let species = Dex.species.get(speciesid);
while (species.prevo) {
const prevoSpecies = Dex.species.get(species.prevo);
if (prevoSpecies.evos.length > 1) break;
species = prevoSpecies;
}
return species.id;
},
validateSet(set, teamHas) {
if (!teamHas.abilityMap) {
teamHas.abilityMap = Object.create(null);
for (const pokemon of Dex.species.all()) {
if (pokemon.isNonstandard && !this.ruleTable.has(`+pokemontag:${this.toID(pokemon.isNonstandard)}`)) continue;
if (pokemon.battleOnly) continue;
if (this.ruleTable.isBannedSpecies(pokemon)) continue;
for (const key of Object.values(pokemon.abilities)) {
const abilityId = this.dex.toID(key);
if (abilityId in teamHas.abilityMap) {
teamHas.abilityMap[abilityId][pokemon.evos ? 'push' : 'unshift'](pokemon.id);
} else {
teamHas.abilityMap[abilityId] = [pokemon.id];
}
}
}
}
const problem = this.validateForme(set);
if (problem.length) return problem;
const species = this.dex.species.get(set.species);
if (!species.exists || species.num < 1) return [`The Pok\u00e9mon "${set.species}" does not exist.`];
if (species.isNonstandard && !this.ruleTable.has(`+pokemontag:${this.toID(species.isNonstandard)}`)) {
return [`${species.name} is not obtainable in Generation ${this.dex.gen}.`];
}
const name = set.name;
if (this.ruleTable.isBannedSpecies(species)) {
return this.validateSet(set, teamHas);
}
const ability = this.dex.abilities.get(set.ability);
if (!ability.exists || ability.isNonstandard) return [`${name} needs to have a valid ability.`];
const pokemonWithAbility = teamHas.abilityMap[ability.id];
if (!pokemonWithAbility) return [`${ability.name} is not available on a legal Pok\u00e9mon.`];
(this.format as any).debug = true;
if (!teamHas.abilitySources) teamHas.abilitySources = Object.create(null);
const validSources: string[] = teamHas.abilitySources[this.toID(set.species)] = []; // Evolution families
let canonicalSource = ''; // Specific for the basic implementation of Donor Clause (see onValidateTeam).
const hpType = set.hpType;
for (const donor of pokemonWithAbility) {
const donorSpecies = this.dex.species.get(donor);
let format = this.format;
if (!format.getEvoFamily) format = this.dex.formats.get('gen9inheritance');
const evoFamily = format.getEvoFamily!(donorSpecies.id);
if (validSources.includes(evoFamily)) continue;
set.species = donorSpecies.name;
set.name = donorSpecies.baseSpecies;
const annoyingPokemon = ["Iron Leaves", "Walking Wake", "Iron Boulder", "Gouging Fire", "Iron Crown", "Raging Bolt"];
if (annoyingPokemon.includes(donorSpecies.name) || annoyingPokemon.includes(species.name)) {
set.hpType = "Dark";
}
const problems = this.validateSet(set, teamHas);
if (!problems?.length) {
validSources.push(evoFamily);
canonicalSource = donorSpecies.name;
}
// Specific for the basic implementation of Donor Clause (see onValidateTeam).
if (validSources.length > 1) break;
}
(this.format as any).debug = false;
set.name = name;
set.species = species.name;
set.hpType = hpType;
if (!validSources.length) {
if (pokemonWithAbility.length > 1) return [`${name}'s set is illegal.`];
return [`${name} has an illegal set with an ability from ${this.dex.species.get(pokemonWithAbility[0]).name}.`];
}
// Protocol: Include the data of the donor species in the `pokeball` data slot.
// Afterwards, we are going to reset the name to what the user intended.
set.pokeball = `${set.pokeball}0${canonicalSource}`;
return null;
},
onValidateTeam(team, f, teamHas) {
if (this.ruleTable.has('abilityclause')) {
const abilityTable = new this.dex.Multiset<string>();
const base: {[k: string]: string} = {
airlock: 'cloudnine',
armortail: 'queenlymajesty',
battlearmor: 'shellarmor',
clearbody: 'whitesmoke',
dazzling: 'queenlymajesty',
emergencyexit: 'wimpout',
filter: 'solidrock',
gooey: 'tanglinghair',
insomnia: 'vitalspirit',
ironbarbs: 'roughskin',
keeneye: 'illuminate',
libero: 'protean',
minus: 'plus',
moxie: 'chillingneigh',
powerofalchemy: 'receiver',
propellertail: 'stalwart',
teravolt: 'moldbreaker',
turboblaze: 'moldbreaker',
};
const num = parseInt(this.ruleTable.valueRules.get('abilityclause')!);
for (const set of team) {
let ability = this.toID(set.ability.split('0')[0]);
if (!ability) continue;
if (ability in base) ability = base[ability] as ID;
if (abilityTable.get(ability) >= num) {
return [
`You are limited to ${num} of each ability by ${num} Ability Clause.`,
`(You have more than ${num} ${this.dex.abilities.get(ability).name} variants)`,
];
}
abilityTable.add(ability);
}
}
// Donor Clause
const evoFamilyLists = [];
for (const set of team) {
const abilitySources = teamHas.abilitySources?.[this.toID(set.species)];
if (!abilitySources) continue;
let format = this.format;
if (!format.getEvoFamily) format = this.dex.formats.get('gen9inheritance');
evoFamilyLists.push(abilitySources.map(format.getEvoFamily!));
}
// Checking actual full incompatibility would require expensive algebra.
// Instead, we only check the trivial case of multiple Pokémon only legal for exactly one family. FIXME?
const requiredFamilies = Object.create(null);
for (const evoFamilies of evoFamilyLists) {
if (evoFamilies.length !== 1) continue;
const [familyId] = evoFamilies;
if (!(familyId in requiredFamilies)) {
requiredFamilies[familyId] = 1;
} else {
requiredFamilies[familyId]++;
}
if (requiredFamilies[familyId] > 1) {
return [
`You are limited to up to one inheritance from each evolution family by the Donor Clause.`,
`(You inherit more than once from ${this.dex.species.get(familyId).name}).`,
];
}
}
},
onBegin() {
for (const pokemon of this.getAllPokemon()) {
if (pokemon.pokeball.includes('0')) {
const donor = pokemon.pokeball.split('0')[1];
pokemon.m.donor = this.toID(donor);
(pokemon as any).pokeball = this.toID(pokemon.pokeball.split('0')[0]);
}
}
},
onSwitchIn(pokemon) {
if (!pokemon.m.donor) return;
const donorTemplate = this.dex.species.get(pokemon.m.donor);
if (!donorTemplate.exists) return;
// Place volatiles on the Pokémon to show the donor details.
this.add('-start', pokemon, donorTemplate.name, '[silent]');
},
},
{
name: "[Gen 9] Mix and Mega",
desc: `Mega evolve any Pokémon with any mega stone, or transform them with Primal orbs, Origin orbs, and Rusted items with no limit. Mega and Primal boosts based on form changes from gen 7.`,
mod: 'mixandmega',
ruleset: ['Standard OMs', 'Evasion Items Clause', 'Evasion Abilities Clause', 'Sleep Moves Clause', 'Terastal Clause'],
banlist: [
'Calyrex-Shadow', 'Koraidon', 'Kyogre', 'Miraidon', 'Moody', 'Shadow Tag', 'Beedrillite', 'Blazikenite', 'Gengarite',
'Kangaskhanite', 'Mawilite', 'Medichamite', 'Pidgeotite', 'Red Orb', 'Rusted Sword', 'Baton Pass', 'Shed Tail',
],
restricted: [
'Arceus', 'Basculegion-M', 'Calyrex-Ice', 'Deoxys-Normal', 'Deoxys-Attack', 'Dialga', 'Dragapult', 'Eternatus', 'Flutter Mane',
'Gengar', 'Gholdengo', 'Giratina', 'Gouging Fire', 'Groudon', 'Ho-Oh', 'Iron Bundle', 'Kyurem-Black', 'Kyurem-White', 'Lugia',
'Lunala', 'Manaphy', 'Mewtwo', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Palkia', 'Rayquaza', 'Regigigas', 'Reshiram',
'Slaking', 'Sneasler', 'Solgaleo', 'Ursaluna-Bloodmoon', 'Urshifu-Single-Strike', 'Zacian', 'Zekrom',
],
onValidateTeam(team) {
const itemTable = new Set<ID>();
for (const set of team) {
const item = this.dex.items.get(set.item);
if (!item.megaStone && !item.onPrimal && !item.forcedForme?.endsWith('Origin') &&
!item.name.startsWith('Rusted') && !item.name.endsWith('Mask')) continue;
const natdex = this.ruleTable.has('standardnatdex');
if (natdex && item.id !== 'ultranecroziumz') continue;
const species = this.dex.species.get(set.species);
if (species.isNonstandard && !this.ruleTable.has(`+pokemontag:${this.toID(species.isNonstandard)}`)) {
return [`${species.baseSpecies} does not exist in gen 9.`];
}
if ((item.itemUser?.includes(species.name) && !item.megaStone && !item.onPrimal) ||
(natdex && species.name.startsWith('Necrozma-') && item.id === 'ultranecroziumz')) {
continue;
}
if (this.ruleTable.isRestrictedSpecies(species) || this.toID(set.ability) === 'powerconstruct') {
return [`${species.name} is not allowed to hold ${item.name}.`];
}
if (itemTable.has(item.id)) {
return [
`You are limited to one of each mega stone/orb/rusted item/sinnoh item/mask.`,
`(You have more than one ${item.name})`,
];
}
itemTable.add(item.id);
}
},
onBegin() {
for (const pokemon of this.getAllPokemon()) {
pokemon.m.originalSpecies = pokemon.baseSpecies.name;
}
},
onSwitchIn(pokemon) {
const originalFormeSpecies = this.dex.species.get((pokemon.species as any).originalSpecies);
if (originalFormeSpecies.exists && pokemon.m.originalSpecies !== originalFormeSpecies.baseSpecies) {
// Place volatiles on the Pokémon to show its mega-evolved condition and details
this.add('-start', pokemon, originalFormeSpecies.requiredItem || originalFormeSpecies.requiredMove, '[silent]');
const oSpecies = this.dex.species.get(pokemon.m.originalSpecies);
if (oSpecies.types.length !== pokemon.species.types.length || oSpecies.types[1] !== pokemon.species.types[1]) {
this.add('-start', pokemon, 'typechange', pokemon.species.types.join('/'), '[silent]');
}
}
},
onSwitchOut(pokemon) {
const oMegaSpecies = this.dex.species.get((pokemon.species as any).originalSpecies);
if (oMegaSpecies.exists && pokemon.m.originalSpecies !== oMegaSpecies.baseSpecies) {
this.add('-end', pokemon, oMegaSpecies.requiredItem || oMegaSpecies.requiredMove, '[silent]');
}
},
},
{
name: "[Gen 9] Partners in Crime",
desc: `Doubles-based metagame where both active ally Pokémon share abilities and moves.`,
mod: 'partnersincrime',
gameType: 'doubles',
ruleset: ['Standard Doubles', 'Evasion Abilities Clause'],
banlist: [
'Annihilape', 'Arceus', 'Calyrex-Ice', 'Calyrex-Shadow', 'Chi-Yu', 'Cresselia', 'Darkrai', 'Deoxys-Attack', 'Dialga', 'Dialga-Origin', 'Eternatus', 'Flutter Mane',
'Giratina', 'Giratina-Origin', 'Groudon', 'Ho-Oh', 'Koraidon', 'Kyogre', 'Kyurem-Black', 'Kyurem-White', 'Lugia', 'Lunala', 'Magearna', 'Mewtwo', 'Miraidon',
'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Palkia', 'Palkia-Origin', 'Rayquaza', 'Reshiram', 'Smeargle', 'Solgaleo', 'Terapagos', 'Urshifu', 'Urshifu-Rapid-Strike',
'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned', 'Zekrom', 'Contrary', 'Dancer', 'Huge Power', 'Moody', 'Pure Power', 'Serene Grace', 'Shadow Tag',
'Stench', 'Bright Powder', 'King\'s Rock', 'Razor Fang', 'Ally Switch', 'Dragon Cheer', 'Last Respects', 'Revival Blessing', 'Swagger',
],
onBegin() {
for (const pokemon of this.getAllPokemon()) {
pokemon.m.trackPP = new Map<string, number>();
}
},
onBeforeSwitchIn(pokemon) {
pokemon.m.curMoves = this.dex.deepClone(pokemon.moves);
let ngas = false;
for (const poke of this.getAllActive()) {
if (this.toID(poke.ability) === ('neutralizinggas' as ID)) {
ngas = true;
break;
}
}
const BAD_ABILITIES = ['trace', 'imposter', 'neutralizinggas', 'illusion', 'wanderingspirit'];
const ally = pokemon.side.active.find(mon => mon && mon !== pokemon && !mon.fainted);
if (ally && ally.ability !== pokemon.ability) {
if (!pokemon.m.innate && !BAD_ABILITIES.includes(this.toID(ally.ability))) {
pokemon.m.innate = 'ability:' + ally.ability;
if (!ngas || ally.getAbility().flags['cantsuppress'] || pokemon.hasItem('Ability Shield')) {
pokemon.volatiles[pokemon.m.innate] = {id: pokemon.m.innate, target: pokemon};
pokemon.m.startVolatile = true;
}
}
if (!ally.m.innate && !BAD_ABILITIES.includes(this.toID(pokemon.ability))) {
ally.m.innate = 'ability:' + pokemon.ability;
if (!ngas || pokemon.getAbility().flags['cantsuppress'] || ally.hasItem('Ability Shield')) {
ally.volatiles[ally.m.innate] = {id: ally.m.innate, target: ally};
ally.m.startVolatile = true;
}
}
}
},
// Starting innate abilities in scripts#actions
onSwitchOut(pokemon) {
if (pokemon.m.innate) {
pokemon.removeVolatile(pokemon.m.innate);
delete pokemon.m.innate;
}
const ally = pokemon.side.active.find(mon => mon && mon !== pokemon && !mon.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;
}
const ally = pokemon.side.active.find(mon => mon && mon !== pokemon && !mon.fainted);
if (ally && ally.m.innate) {
ally.removeVolatile(ally.m.innate);
delete ally.m.innate;
}
},
},
{
name: "[Gen 9] Shared Power",
desc: `Once a Pokémon switches in, its ability is shared with the rest of the team.`,
mod: 'sharedpower',
ruleset: ['Standard OMs', 'Evasion Abilities Clause', 'Evasion Items Clause', 'Sleep Moves Clause'],
banlist: [
'Arceus', 'Calyrex-Ice', 'Calyrex-Shadow', 'Chi-Yu', 'Chien-Pao', 'Conkeldurr', 'Deoxys-Attack', 'Eternatus', 'Greninja', 'Kingambit', 'Kyogre', 'Kyurem-Black', 'Kyurem-White',
'Koraidon', 'Lunala', 'Magearna', 'Mewtwo', 'Miraidon', 'Necrozma-Dawn-Wings', 'Necrozma-Dusk-Mane', 'Ogerpon-Hearthflame', 'Palafin', 'Rayquaza', 'Regieleki', 'Reshiram',
'Rillaboom', 'Scizor', 'Shaymin-Sky', 'Spectrier', 'Sneasler', 'Zacian', 'Zacian-Crowned', 'Zamazenta-Crowned', 'Zekrom', 'Arena Trap', 'Moody', 'Neutralizing Gas',
'Shadow Tag', 'Speed Boost', 'Stench', 'Swift Swim', 'King\'s Rock', 'Leppa Berry', 'Razor Fang', 'Starf Berry', 'Baton Pass', 'Extreme Speed', 'Last Respects',
],
unbanlist: ['Arceus-Bug', 'Arceus-Dragon', 'Arceus-Fire', 'Arceus-Ice'],
restricted: [
'Armor Tail', 'Chlorophyll', 'Comatose', 'Contrary', 'Dazzling', 'Fur Coat', 'Gale Wings', 'Good as Gold', 'Huge Power', 'Ice Scales', 'Illusion', 'Imposter',
'Magic Bounce', 'Magic Guard', 'Magnet Pull', 'Mold Breaker', 'Multiscale', 'Poison Heal', 'Prankster', 'Protosynthesis', 'Psychic Surge', 'Pure Power',
'Purifying Salt', 'Quark Drive', 'Queenly Majesty', 'Quick Draw', 'Quick Feet', 'Regenerator', 'Sand Rush', 'Simple', 'Slush Rush', 'Stakeout', 'Stamina',
'Sturdy', 'Surge Surfer', 'Technician', 'Tinted Lens', 'Triage', 'Unaware', 'Unburden', 'Water Bubble',
],
onValidateRule() {
if (this.format.gameType !== 'singles') {
throw new Error(`Shared Power currently does not support ${this.format.gameType} battles.`);
}
},
getSharedPower(pokemon) {
const sharedPower = new Set<string>();
for (const ally of pokemon.side.pokemon) {
if (pokemon.battle.ruleTable.isRestricted(`ability:${ally.baseAbility}`)) continue;
if (ally.previouslySwitchedIn > 0) {
if (pokemon.battle.dex.currentMod !== 'sharedpower' && ['trace', 'mirrorarmor'].includes(ally.baseAbility)) {
sharedPower.add('noability');
continue;
}
sharedPower.add(ally.baseAbility);
}
}
sharedPower.delete(pokemon.baseAbility);
return sharedPower;
},
onBeforeSwitchIn(pokemon) {
let format = this.format;
if (!format.getSharedPower) format = this.dex.formats.get('gen9sharedpower');
for (const ability of format.getSharedPower!(pokemon)) {
const effect = 'ability:' + ability;
pokemon.volatiles[effect] = {id: this.toID(effect), target: pokemon};