Commit Graph

244 Commits

Author SHA1 Message Date
Karthik Bandagonda
8f2e1cb0d2
Always show OTS to spectators (#10767)
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
2024-12-18 23:45:43 -06:00
Kris Johnson
2b03102954 Mix and Mega: Make Aggronite great again 2024-12-12 11:07:52 -07:00
Kris Johnson
068890e5c2 Add December 2024 OMotM/LCotM 2024-12-01 09:37:48 -07:00
TwiSteorra
bbea81daa8
Update Sketch Post-Gen 7 Moves rule description (#10709)
https://www.smogon.com/forums/threads/sketch-post-gen-7-moves-rule-has-outdated-description.3755629/
2024-11-30 10:30:16 -07:00
urkerab
a08348ed43
Fix ability selection for Fervent Impersonation (#10712) 2024-11-30 10:29:57 -07:00
urkerab
92a3264e77
Improve signature of getValidationSpecies (#10711) 2024-11-30 10:29:47 -07:00
Karthik Bandagonda
a893791792
Fix interaction between Mega Rayquaza/Terastal Clauses (#9936) 2024-11-18 15:32:46 -07:00
urkerab
ae14c6f90c
Allow Tera Shell to work in Inverse battles (#10599)
Some checks failed
Node.js CI / build (16.x) (push) Has been cancelled
2024-10-04 19:48:36 -05:00
Kris Johnson
47e805bf91 Add missing items to Baton Pass Stat Trap Clause 2024-10-01 18:07:40 -06:00
Kris Johnson
16bb6c2b77 Add October 2024 National Dex spotlight 2024-10-01 01:04:09 -06:00
Karthik Bandagonda
4ba7f6e8fc
Use value rules for timer (#10194)
* Use value rules for timer

* lint

* fix rule overrides

* fix the "boolean" value rules

* add limits for number based rules

* Realized that you don't need boolean value rules

* oops

* fix checks for lower bounds
2024-09-29 19:10:49 -06:00
urkerab
1f56611716
Test cosmetic formes (#10579)
* Add tests for cosmetic formes

* Fix aliases of Pokestar F to use its actual name

* Revert "BH: Fix weird validation edge case"

This reverts commit e71619135a.

* Remove invalid tiers of cosmetic formes of Pokestar Giant
2024-09-28 11:38:56 -06:00
Kris Johnson
e71619135a BH: Fix weird validation edge case 2024-09-27 00:46:17 -06:00
Leonard Craft III
27160e8374 Add description to Fervant Impersonation Mod 2024-09-12 20:19:27 -05:00
urkerab
dbd0ccba19
Use base forme names in banlists where possible (#10515)
* Use base forme names in banlists where possible

This allows you use e.g. 'Arceus-Normal' instead of 'Arceus-Base'.

Also includes some aliases so that all known base forme names actually work.

* Update formats.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-09-01 14:43:07 -06:00
Mia
ada9f31ef3 Revert "Use base forme names in banlists where possible (#10496)"
This reverts commit 8438ec1890.
2024-08-26 23:15:59 -05:00
urkerab
8438ec1890
Use base forme names in banlists where possible (#10496)
* Use base forme names in banlists where possible

This allows you use e.g. 'Arceus-Normal' instead of 'Arceus-Base'.

Also includes some aliases so that all known base forme names actually work.

* Update formats.ts

* Update config/formats.ts

* Update config/formats.ts

* Update config/formats.ts

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-08-26 19:20:28 -06:00
Kris Johnson
80ed6df5fc Refactor Item Clause into a value rule 2024-08-08 13:13:33 -06:00
Kris Johnson
63d191aeef Make Force Monotype return its value rule 2024-08-08 12:23:39 -06:00
Kris Johnson
27001b0888 Pokemoves: Convert some validation into value rules 2024-08-08 12:22:54 -06:00
Yoshiblaze
d71cb04ae5
Agg August-November 2024 PMotS (#10450)
* PMOTS

* Update learnsets.ts

* Update pokedex.ts

* Update rulesets.ts

* Update moves.ts

* Update data/mods/gen6megasrevisited/abilities.ts

* Update data/mods/gen6megasrevisited/abilities.ts

* Update data/mods/gen6megasrevisited/abilities.ts

* Update data/mods/gen6megasrevisited/abilities.ts

* Update data/mods/gen6megasrevisited/abilities.ts

* Update data/mods/gen6megasrevisited/abilities.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-08-04 12:20:55 -06:00
Guangcong Luo
88be8d7b3c
Refactor types for Lowercase<string> (#10377)
TypeScript 4.8+ supports Lowercase for lowercase strings, which isn't
exactly what ID is, but can be used to type IDs in object keys and data
entries that previously required string. I'm calling it IDEntry in places
where it should be an ID but TypeScript doesn't support that.

Very conveniently, no additional casts will be needed when using ID
where IDEntry is expected.

It's caught at least a few bugs, which is also why I'm PRing: I didn't
write the code for the bugs it found, and don't know if it's the right
way to fix them.

This ballooned into several other type refactors.
2024-07-01 15:57:14 -07:00
Guangcong Luo
973b01c1e4 Refactor Crazyhouse rule implementation
Previous implementation was quite wonky and doesn't really need to be.
2024-07-01 01:01:40 -07:00
Kris Johnson
89128dee97
Utils#Multiset: Redefine get to remove undefined return (#10329) 2024-06-06 17:16:59 -06:00
Kris Johnson
192572f216 Fervent Impersonation: Fix Mimikyu/Cramorant/Eiscue 2024-06-06 16:11:12 -06:00
Kris Johnson
23b3ff962d Fervent Impersionation: Fix ability bugs 2024-06-05 23:19:56 -06:00
Kris Johnson
cf7584ae0d Fervent Impersonation: Fix nickname legality 2024-04-15 20:17:30 -06:00
Kris Johnson
b22c85cb5d Put Min Source Gen = 9 into Standard OMs 2024-04-14 10:16:46 -06:00
Kris Johnson
35c0270a09 Fervent Impersonation: Fix HP bug 2024-04-13 23:11:26 -06:00
Kris Johnson
4c7eba228e Add Fervent Impersonation 2024-04-13 15:53:22 -06:00
Yoshiblaze
cfb71f27b3
Add New Pet Mod of the Season & Leader's Choice (April-July) (#10229)
* PMOTS April 2024

* Update formats.ts

* Update formats-data.ts

* Update items.ts

* Update moves.ts

* Update rulesets.ts

* Create rulesets.ts

* Update scripts.ts

* Update formats-data.ts

* Update formats-data.ts

* Update rulesets.ts

* Update formats.ts

* Update formats.ts

* Update formats.ts

* Update rulesets.ts

* Update moves.ts

* Update formats-data.ts

* Update formats.ts

* Update moves.ts

* Update formats-data.ts

* Update pokedex.ts

* Update formats-data.ts

* DLC2 Learnsets

* Update formats-data.ts

* Update formats-data.ts

* Update pokedex.ts

* Update pokedex.ts

* Update pokedex.ts

* Delete data/mods/donotuse/rulesets.ts

* Update formats.ts

* Delete data/mods/donotuse/formats-data.ts

* Delete data/mods/donotuse/scripts.ts

* Delete data/mods/moderngen2/moves.ts

* Delete data/mods/moderngen2/items.ts

* Update scripts.ts

* Update scripts.ts

* Update formats-data.ts

* Update scripts.ts

* Update rulesets.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-03-31 22:04:48 -06:00
Theia
d582160079
Update Chimera 1v1 Mod description (#10172) 2024-02-15 09:30:10 -07:00
Distrib
3c31c0fa45
Add Force Monocolor rule (#9931)
* Rules: Add forcemonocolor

* update

* Update data/rulesets.ts

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>

* Update data/rulesets.ts

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>

* Update rulesets.ts

* Update rulesets.ts

* Update data/rulesets.ts

---------

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-02-06 22:46:45 -07:00
Kris Johnson
437c476759 Add Force Tera Type rule 2024-02-06 22:21:51 -07:00
Kris Johnson
c22a17821e Re-Evolution: Fix evolving into exclusive formes 2024-01-31 16:13:27 -07:00
Kris Johnson
a5208f665e Rename Draft formats 2024-01-19 16:31:56 -07:00
Alexander B
fa1b5fd98b
STABmons: Fix NatDex validation (#10123) 2024-01-18 22:03:13 -07:00
Kris Johnson
ac06f291be ADV LC: Add Accuracy Moves Clause 2024-01-14 11:24:44 -07:00
Kris Johnson
6bb9c97551 DPP OU: Add Focus Energy to Baton Pass Clause 2024-01-11 20:35:22 -07:00
Guangcong Luo
3c51f8aa1f
Refactor BestOfGame (#10026)
This replaces some pretty jank code with much cleaner code.
Anything that would be more cleanly implemented by iterating the
players array is now done by iterating the players array.

Some instances of p1/p2 are lying around but we should slowly deprecate
them.
2024-01-07 01:45:23 -08:00
Karthik
409f512bfd
Fix Zacian/Zamazenta Crowned formes in Hackmons (#10075) 2024-01-03 18:00:29 -07:00
Karthik
e51cb1b80b
Fix Event Moves Clause banning Hidden Power types (#10070) 2024-01-02 15:17:17 -07:00
Kaen
b53ab4cd66
Rework Protean Palace (#10036)
https://www.smogon.com/forums/threads/protean-palace.3726834/post-9909685
2023-12-29 12:22:32 -07:00
Theia
5bc763002d
Update Evasion Items Clause description (#10038) 2023-12-28 21:02:38 -06:00
Leonard Craft III
b6704374b8
Add Blueberry Prologue (#10024)
* Add Blueberry Prologue

* Minor formatting
2023-12-27 12:56:29 -07:00
Kris Johnson
e8c106ea1e Remove all mentions of "Nintendo" 2023-12-21 11:44:43 -07:00
Kris Johnson
243b3b0b9a DPP: Add another new Baton Pass Clause variant 2023-12-18 15:43:35 -07:00
Kris Johnson
a0f10ffa51
Add DLC2 data (#9963)
* DLC2 returning Pokemon

* Returning legendaries too

* Partially add Raging Bolt and Iron Crown (#10)

* Add remaining Pre-DLC2 event data

* Fix tests

* Last event before DLC + split learnset files

* Learnsets + secret returning pokemon

* Some DLC 2 stuff (#12)

* Add New Mons

* Add Electro Shot

* Give Dipplin Dex Evo

* Update data/moves.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* More tweaks

* formats

* Revealed moves (#11)

* Add Hard Press

* Add Psychic Noise

* Add Upper Hand

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* more things

* Fix typo

* a lot of other things

* MOVES! kinda

* b

* fickle beam confirmed chance

* Evo Item Undexit + Metal Alloy + Move Fixes (#19)

* Update move data

* Update Item Data

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Add message for Fickle Beam BP double (#18)

* Add some tests and implement Tera Shell (#15)

* add some tests and draft of tera shell

* add text

* .

* add improvements from feedback, change behavior of terashell

* use AfterMove instead of AfterMoveSecondary

* add confirmation to multi-hit interaction

* improve based on feedback and general cleanup

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Add Tera Shift and Teraform Zero (#16)

* Add Tera Shift and Teraform Zero

* Add short descriptions

* fixes

* More move changes

* Update unSketchable moves

List from Anubis

* more move things

* oops

* Implement new Neutralizing Gas/Paradox ability interaction (#17)

* Implement new Neutralizing Gas/Paradox ability interaction

* add test

* revert in dlc

* ok

* Update pastgens for Sketch (#20)

* Implement Stellar type (#13)

* Implement Stellar type

* stuff from research

* pain

* add tests for Dragon Cheer (#22)

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Update move flags (#23)

* Fix flags for new moves

* update old moves

* remove sparkling aria changes

* update metronome description

* update other move descriptions

* more formatz stuff

* Add Poison Puppeteer (#24)

* Add Poison Puppeteer

* i'm bad

* still bad

* Fix build

* oops

* Update data/moves.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/moves.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/items.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/moves.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Fix Terapagos dex entries (#25)

* Update data/pokedex.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/pokedex.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* Update data/pokedex.ts

Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>

* FIX BUILD

* Fix Regulation E formats (#26)

* Fix Regulation E formats

* add move bans

* nevermind

* Add Regulation F formats (#27)

* Fix interaction between Adaptability and Tera Stellar (#28)

* reg f bo3 ladder

* Update config/formats.ts

Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>

---------

Co-authored-by: Smudge <smudgerox@users.noreply.github.com>
Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>
Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
Co-authored-by: tofa <79044321+im-tofa@users.noreply.github.com>
Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>
2023-12-15 21:35:01 -07:00
Guangcong Luo
eb60769cd3
Refactor learnset checking (#9951)
After seeing fifty different ways we use `getLearnset`, most of which
are just "haphazardly assemble a movepool", I decided to write
`getFullLearnset` and `getMovePool`, which centralizes the
implementations and prevents weird bugs like 9713dc6db5 which
we spent two years trying to figure out.
2023-12-08 22:45:47 -06:00
Guangcong Luo
9713dc6db5 Fix crash in Rulesets
Crash introduced in #8195 and has been plaguing us with thousands of
crashes per month for the past two years, but 9cd64cba15 finally
let us track it down.

Special thanks to everyone who spent so much time and effort trying
to identify the source of this crash over the past few years. It's
over. It's finally over.
2023-12-07 16:34:51 -05:00