Commit Graph

52 Commits

Author SHA1 Message Date
Guangcong Luo
6b3a3070c9 Refactor team validator for readability
`checkLearnset` has been renamed `checkCanLearn`.

`reconcileLearnset` has been replaced with `validateMoves`, which
bundles the actual `checkCanLearn` calls with the old
`reconcileLearnset`, making for a better name.
2021-01-03 23:26:20 -08:00
Leonard Craft III
9b1e44bf30
Formats: Move legendary validation to Minimal GBU (#7774) 2020-12-08 09:57:05 +04:00
Kris Johnson
2b510d050d Alphabet Cup: Add prevolution support 2020-11-28 03:22:04 -07:00
May Evans
9b8e34bc48
Gen 1: Announce Desync Clause Mod, fix Stadium Sleep Clause (#7702) 2020-11-16 23:52:39 -08:00
The Immortal
48221525b5 Remove Dynamax Ubers Clause 2020-11-16 18:14:34 +04:00
Marty-D
c5b3f10f38
Same Type Clause: Fix Mega check 2020-11-12 16:12:21 -05:00
Kris Johnson
e1c96f8a74
Add Alphabet Cup Move Legality (#7628) 2020-11-03 02:42:34 +04:00
Kris Johnson
a641cfcce8
Fix Overflow Stat Clause and turn it into a mod (#7604) 2020-10-30 10:59:38 +04:00
The Immortal
4be8cc8355 Add Overflow Stat Clause 2020-10-27 00:35:51 +04:00
Kris Johnson
c3ea57f8cc
Fix typo 2020-10-25 18:15:01 -06:00
LegoFigure11
eea703eef9
Fix Crown Tundra Pokedex validation (#7573) 2020-10-25 15:59:10 +04:00
Kris Johnson
3e15896a0d Restrict Calyrex-Ice and Calyrex-Shadow correctly 2020-10-24 20:25:32 -06:00
Kris Johnson
3248a888cb
Add Tundra Tourney (#7565) 2020-10-24 13:50:02 +04:00
The Immortal
24afc0f57e Show Genesect forme in Team Preview 2020-10-23 20:51:16 +04:00
The Immortal
1754b7dc2f Add Crown Tundra Pokemon
TODO: Learnsets
2020-10-23 06:40:50 +04:00
urkerab
5d714fbb56
Replace @ts-ignore with type assertions or other less unsafe constructs (#7390) 2020-09-19 02:07:48 -07:00
Quinton Lee
bbfacd3ab4
Fix Flipped Mod (#7386) 2020-09-18 00:45:28 -06:00
Kris Johnson
735a9733eb STABmons: Don't gain moves from battle-only formes 2020-09-11 10:28:02 -06:00
Strahm, Jeffrey S.(S&T-Student)
188426490b Rename FormatsData to FormatData
(The name FormatsData is inconsistent with how we name other things;
especially since it's supposed to be data for a single format. It was
probably originally a typo. -Zarel)
2020-09-07 19:35:14 -07:00
urkerab
1bf873018c
Remove outdated getAwakeningValues function (#7331) 2020-09-07 17:00:53 -07:00
Kris Johnson
5e255012bc
Add a 'bst' property to Species (#7138) 2020-08-12 12:06:09 -07:00
Mia
deeed6c789
Remove sim/ and data/'s globals (#7091) 2020-08-07 06:44:15 -07:00
The Immortal
5db7175118 Add Zarude and Celebi events 2020-08-06 18:05:55 +04:00
Kris Johnson
70edfaa64c
Add support for more OMs (#7084) 2020-07-30 05:22:21 +04:00
The Immortal
d2430525b3 Fix Scalemons command crash 2020-07-28 17:47:26 +04:00
Guangcong Luo
2f805c93a2
Remove "Battle" prefix from data exports (#7039)
`BattlePokedex` is now `Pokedex`, `BattleItems` is now `Items`, etc.

I also renamed `Movedex` to `Moves` and `Statuses` to `Conditions`.

`TypeChart` isn't `Types` yet, because unlike the others, it's not
indexed by ID. That should probably be fixed one day.
2020-07-24 12:42:26 -07:00
Kris Johnson
00b88b521d
Handle Gigantamaxing properly (#7001) 2020-07-23 13:27:42 -07:00
LegoFigure11
32338ec705
Add Armor Beginnings Online Competition (#7024)
* Add Isle of Armor Validator Rule

* Add new Online Competition

Armor Beginnings https://battle.pokemon-home.com/regulation/000000104/en
2020-07-20 13:38:31 +04:00
urkerab
09350a01bf
Centralise the check for a restricted species (#6973) 2020-07-07 15:30:37 -07:00
Kris Johnson
4043f6e118
Fix bugs from recent restrictions update (#6967) 2020-07-06 15:54:14 -07:00
urkerab
6fb5b4e90d
Allow custom formats (e.g. for tours) to modify format restrictions (#6958) 2020-07-05 14:32:30 -07:00
Kris Johnson
28a4a9a91e
Fix STABmons Move Legality (#6918) 2020-06-25 16:12:57 -07:00
Kris Johnson
0e0ad1f3d8
Fix some National Dex mechanics (#6914) 2020-06-24 15:23:05 -07:00
The Immortal
e706503015 Fix build 2020-06-21 19:04:52 +04:00
The Immortal
572d3b1ca0 Hide Urshifu forme in Team Preview
https://www.smogon.com/forums/threads/sword-shield-battle-mechanics-research.3655528/post-8511700
2020-06-21 16:10:09 +04:00
Enigami
832887402f
Implement Stadium Sleep Clause (#6834) 2020-06-14 19:14:21 -07:00
Mia
6839a1f4db
Add a library for utility functions (#6817) 2020-06-09 22:06:43 -07:00
Kris Johnson
ff1a7bcc1a
Fix crash from adding Two vs Two to triples formats (#6801) 2020-06-04 16:11:34 +04:00
The Immortal
e239688e2f Prevent crash with One vs One rule in random doubles 2020-06-03 00:33:43 +04:00
Kris Johnson
5f724397fc
Make Species#nfe work for previous generations (#6776) 2020-05-30 21:36:47 -07:00
urkerab
d3a3666e85
Fix bugs caused by not specifying effectiveness priority (#6765)
Inverse Mod needs to go first, to calculate the negated effectiveness.
Disguise goes second, to suppress effectiveness.
Delta Stream goes third, to weaken moves super-effective against Flying types.
Tar Shot goes last, to make its victim weak to Fire type moves.

This allows the existing test for Delta Stream with Tar Shot to pass.
Additionally a new test for Delta Stream with Inverse Mod now passes.
A test for Flying Press with Inverse Mod is also included.
2020-05-29 16:55:42 -07:00
Leonard Craft III
3496491d4f
Fix Farfetch'd / Sirfetch'd with new apostrophe (#6721)
Also fixes Stick's behavior
2020-05-19 21:56:35 -07:00
Guangcong Luo
381bd7508a Clarify species limit and requiredItem errors 2020-05-16 12:30:41 -04:00
The Immortal
fba8410985 One vs One: Prevent crash 2020-05-14 19:35:10 +04:00
The Immortal
cecff54e00 Add Two vs Two rule
And change One vs One rule to allow any number of Pokemon in Team Preview.
2020-05-14 00:25:45 +04:00
The Immortal
ae24249628 Add One vs One rule 2020-05-13 22:21:27 +04:00
Kris Johnson
9f5d1bc681
Fix Dynamax Clause validation (#6674) 2020-05-10 14:42:53 -07:00
Kirk Scheibelhut
2af7040270
Group zMove and maxMove attributes (#6652)
This mostly serves to provide cleaner and more consistent field
naming. maxMove currently doesn't have boosts or effects to group
together but who knows what will be thrown at us via DLC, and being
symmetrical with zMoves is a nice.
2020-05-04 20:21:27 -07:00
Guangcong Luo
800d8bd8f3 Remove Dex.getForme etc
The server now uses the same approach as the client of treating
cosmetic formes as real formes, as documented in `FORMES.md`.

This eliminates the need for the `.forme` and `.speciesid` properties
of `Pokemon`.

`pokemon.id` has also been removed: useful, since it turns out half
of its uses were bugs that should have used `pokemon.species.id`.
2020-04-28 17:38:54 -07:00
Kris Johnson
979be98574
Refactor inheritsFrom to changesFrom (#6611) 2020-04-26 14:44:25 -07:00