Commit Graph

1311 Commits

Author SHA1 Message Date
Christian Kobril
d24fdbaa77
Fix SIM-PROTOCOL.md generation description (#9948)
Gen should be from "1 to 9" instead of from "1 to 7".

Fixes #9910

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2023-12-08 03:38:02 -06:00
Guangcong Luo
2ada402f22 Fix mutation of species.abilities 2023-12-07 02:05:16 -05:00
Guangcong Luo
9cd64cba15 Freeze cached Sim objects
We're hunting ~~wabbits~~ validator bugs.

Honestly, this has been a long time coming, but Object.freeze perf
used to not be good enough for us to use it here. Here's hoping!
2023-12-07 01:26:51 -05:00
pyuk-bot
a8c4f4dcf6
Fix when Ogerpon's ability should change on Tera (#9863) 2023-11-15 19:57:18 -06:00
Leonard Craft III
c4e1c0b478
Support defining default best-of formats server-side (#9866) 2023-11-01 23:24:23 -05:00
Kris Johnson
6239b39af3 Add November 2023 RoA Spotlight 2023-11-01 11:36:13 -06:00
Alexander B
c77aed8877
Add Illusion Level Mod (#9859) 2023-10-31 10:12:02 -06:00
Karthik
80278c23f0
Fix information sent in OTS (#9851) 2023-10-20 00:17:35 -05:00
Karthik
d3cb797867
Send Open Team Sheets to client in packed format (#9832) 2023-10-17 21:15:09 -05:00
Karthik
cf5de82523
Fix location of gender randomization from #9839 (#9842) 2023-10-17 18:53:02 -05:00
Karthik
adebe24e5d
Randomize gender in team validator instead of battle (#9839) 2023-10-16 23:11:52 -05:00
Mia
7633a81a47 Teams: Fix importing Tera Types
This is case-sensitive fsr, so we have to preserve that.
2023-10-11 21:58:04 -05:00
Mia
d7ea557ecb Teams: Aggressively sanitize inputs 2023-10-08 21:05:18 -05:00
livid washed
cb3935aabc
Revamp [Gen 5] Random Battle (#9822)
* Preserve Gen 4 rands

* Set up move arrays

* Create framework for new system

* Remove some gen 6 stuff

* Implement Spinner role code

* make Priority Pokemon work

* Fix castform level

* Remove random-data.json

* Remove more gen 6 abilities

* Treat Nature Power like eq

* More gen 6 removing

* knockoff nostab

* Prioritise non-speed setup moves on setup roles

* Enforce recovery on Spinner

* Bisharp blackglasses

* Add comment re. Nature Power

* Remove duplicate comment

* Update tests for gen 5

* Add tests

* fix some things in json file

* formatting

* fill out random-teams

* adjustments

* remove roost raptor

* pt psychic celebi set 1

* lint

* nostab chatter

* Expert Belt conditions

* Fix some incompatibilities

* Item generation

* Formatting

* fix Unaware Clefable

* Refactor some items

* Remove unnecessary code

* Prevent tinted lens night shade noctowl

* Thundurus

* reun

* Pressure tomb

* remove gen 6 setup moves

---------

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
2023-10-06 19:58:51 -06:00
pyuk-bot
c62fe2ea49
Stop innate Mirror Herb/Opportunist infinite loop (#9818) 2023-10-03 12:03:59 -06:00
pyuk-bot
4e0abbe246
Sharing is Caring: Fix Big Root + healing berry (#9817) 2023-10-03 12:03:38 -06:00
Kris Johnson
4b1c8987c0 Add October 2023 OM of the Month/RoA Spotlight 2023-10-01 02:25:26 -06:00
Leonard Craft III
ba2a5e31f2 Fix Commander with Neutralizing Gas after Dondozo faints 2023-09-26 19:02:29 -05:00
dot-Comfey
6bcb9147bf
Fix egg move validation for female-only Pokemon (#9796) 2023-09-24 12:16:31 -04:00
dot-Comfey
cc1c2b7ae9
Fix team validator crash (#9794) 2023-09-21 21:06:30 -05:00
dot-Comfey
fd655af323
Fix egg move legality with past gen tutor moves (#9759) 2023-09-17 20:34:56 -05:00
pyuk-bot
980ed5663e
Fix more bugs related to transforming into Ogerpon (#9783) 2023-09-16 17:31:11 -04:00
Kris Johnson
6ff8a6839b Mix and Mega: Add support for Masks 2023-09-15 11:41:31 -06:00
pyuk-bot
98d026a7d1
Pokemon transformed into Ogerpon cannot Tera (#9774) 2023-09-14 20:39:59 -05:00
Karthik
0e9dd94046
Fix Ogerpon Tera Type enforcement (#9779) 2023-09-14 19:39:19 -06:00
Kris Johnson
d2ec4fdf0b Supersweet Syrup only triggers once per battle 2023-09-14 18:57:52 -06:00
Karthik
468fa67f3c
Fix Illusion interaction with Ogerpon (#9765) 2023-09-13 22:16:38 -04:00
Kris Johnson
6bb3879e3a
Add Teal Mask DLC data (#9762)
Co-authored-by: Karthik99999 <bandagondak0217@gmail.com>
Co-authored-by: smudgerox <smudgerox@users.noreply.github.com>
Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>
Co-authored-by: Marty-D <Marty-D@users.noreply.github.com>
Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
2023-09-13 21:08:01 -04:00
dot-Comfey
8d14455fdc
Add recursive chainbreeding (#9751) 2023-09-10 18:54:10 -05:00
Alexander B
8fcff27fd5
Past gens: Fix old move/new Ability compatibility (#9750) 2023-09-08 18:53:59 -05:00
Leonard Craft III
84bd530423
Fix interaction of Pollen Puff and Heal Block (#9732) 2023-09-06 20:13:05 -05:00
Leonard Craft III
5296a28b8d
Implement cantusetwice move flag (#9740) 2023-09-06 20:12:30 -05:00
Alexander B
832a24f4bf
Frantic Fusions: Don't hide nicknames when locked (#9748) 2023-09-04 23:55:44 -06:00
Alexander B
099953f0ce
Fix Pursuit not triggering on revived Pokemon (#9735) 2023-08-28 09:47:33 -06:00
Alexander B
1cb555fba9
Fix Ability Shield interaction with Transform (#9733) 2023-08-27 22:40:26 -05:00
dot-Comfey
cbfca624cf
Fix Pomeg glitch for event eggs (#9716) 2023-08-17 00:25:04 -05:00
dot-Comfey
9eebba0e0d
Fix low level egg move legality (#9709) 2023-08-13 21:52:19 -05:00
Karthik
f491ae3393
Fix Tatsugiri-Stretchy move legality (#9706) 2023-08-10 22:41:53 -06:00
dot-Comfey
5cd27f7a80
Fix Go legality in formats without obtainablemoves (#9698) 2023-08-10 13:20:27 -05:00
ACakeWearingAHat
118d114bd1
Revamp [Gen 7] Random Battle (#9692)
* Create framework for Gen 7 rands revamp

* Shuffle moves and deal with Z-Conversion Porygon-Z

* Add isDoubles as a input for STAB enforcement

* Undo previous

* Move gen 7 doubles code to a separate file

* fill out moves

* revamp abilities

* minor moveset updates

* prevent technician alolan persian

* mostly linting

* Revamp setup moves

* Male Greninja

* Further clean up Setup lists

* More Z-move stuff

* Tweak move and ability incompatibilities

* enforce shadow sneak on kecleon

* Add Geomancy to setup and prevent evasion abilities by default

* items

* more minor set updates

* linting

* add more z-move users

* soundproof kommonium clanger

* rockium kabutops

* Weak Armor adjustments + some syntax

* refactor and fix /setodds and /randbats and /randdubs

* improve item generation code

* Allow plot sucker houndoom

* Allow Power Construct on Zygarde and homogenize gen 6 ability generation code

* Don't apply new noSTAB list to gen 7 doubles

* Fix -ate abilities

* comment

* Rework shed skin a bit

* Abilities tweaking/simplifying

* simplify Magnet Pull, since Probopass always has earth power

* Enforce U-turn on some Bug types

* Rework specific ability rejections into enforcements

* Prevent Oblivious on Pokemon with no Status moves, since infatuation doesn't exist

* Remove unnecessary item generation code

* Remove Petaya Berry from HP EVs adjustments

* prevent scarf lanturn

* scarf physical changes

diggersby/medicham

* Give Genesect-Douse its level

* Bug fixes and minor set changes

* Split raichu-alola

* Remove unnecessary preferred types

* Don't enforce HP flying on flying types

* make 4 atks jirachi av

* Actually give Jirachi AV and prevent swift swim kingdra with focus energy

* remove another unnecessary ptype

* Drain Punch/CC incompatibility

* Enforce recovery on support Mew

* Prevent Life Orb with Sturdy

* add preferred type(s) to /randbats for gen7

* lint

* forgot semicolon oops

* Remove kangaskhan PT

* Fix u-turn enforcement

* Enforce recovery on Volbeat

* Don't give Honchkrow Black Glasses

* Setup Solgaleo should get Weakness Policy

* Add Bulk Up to guts hariyama

* make Kingler setup sweeper

* Stoutland set update

* Prevent Sash Mismagius and double fire move Volcarona

* Prevent Choice Scarf on Wallbreaker

* Enforce recovery on Ledian

* Remove Ice Beam from Absol-Mega

* Adjust Seviper PTs

* PT normal Heliolisk

* Add PUP to nostab

* Future-proof Nihilego's SpD EVs in case of level changes/Hidden Power IVs

* Change Shaymin PT to Flying

* Prevent lead Focus Sash with Defog or Regenerator

* Remove unnecessary condition for sash

* Move pivotingMoves to the top

* Support Max Move Count tests for gens 7 and 9

* Move general incompatibilites to incompatiblePairs array

* Create a type for roles

* Make Gen 7 no longer inherit from Gen 7 doubles

* Remove unnecessary hardcode

* Remove now unnecessary code (after doubles/singles separation)

* Move hardcodes into incompatiblePairs array

* Split ability enforcement into species and non/species conditions, and fix up some minor things

* Convert ability enforcements that only apply to one Pokemon to species-based

* Update server/chat-plugins/randombattles/index.ts

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>

* Update server/chat-plugins/randombattles/index.ts

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>

* Update random-teams.ts

* make types for role and preferredType explicit in function definitions

* Update test/random-battles/gen7.js

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

* Update data/mods/gen6/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen6/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* Update data/mods/gen7/random-teams.ts

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

* finish snake casing the gen 7 file

* snake case gen 8, hopefully

* Update random-teams.ts

* lint please

* missed a snake

* Fix an incompatibility

* Add types for randomSets

* Simplify /randbats data retrival for Gen 7 random doubles

* Further simplify gen 7 randdubs command

---------

Co-authored-by: livid washed <115855253+livid-washed@users.noreply.github.com>
Co-authored-by: adrivrie <adriaan.de.vries@hotmail.com>
Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-08-10 12:09:09 -06:00
Hisuian Zoroark
f7ba9226d9
Frantic Fusions: Fix validation errors (#9699)
* Frantic Fusions: Fix validation errors

* fix long line

* Update sim/team-validator.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2023-08-06 13:56:16 -06:00
Karthik
2a3b5be624
Allow Alolans to learn Gen 9 egg moves from non-Alolan prevos (#9681) 2023-08-02 22:44:03 -04:00
pyuk-bot
8dc70cc701
Gen 9: Allow Hacked Megas, etc. to Tera (#9684) 2023-07-31 23:12:46 -05:00
dot-Comfey
01e35f4f2d
Add Pokemon GO support (#9646) 2023-07-31 19:27:06 -05:00
Hisuian Zoroark
2ce6563b7a
Improve tracking Intrepid Sword and Dauntless Shield boosts (#9680) 2023-07-31 00:35:15 -05:00
Hisuian Zoroark
3503347bf4
Prevent Commanded Dondozo from switching out through moves (#9679) 2023-07-31 00:31:45 -05:00
Karthik
e218cb9dbb
Properly implement Chloroblast recoil (#9648) 2023-07-15 14:54:49 -05:00
Karthik
5f39b58147
Fix Illusion leak when disguised as Greninja-Bond (#9640) 2023-07-07 17:08:51 -05:00
Leonard Craft III
1ed8205dd9
Fix Greninja-Bond with exhaustive runner (#9613) 2023-06-22 21:48:08 -04:00
Kris Johnson
f6e1cfe19e
Refactor Ash-Greninja (#9606) 2023-06-18 22:51:02 -05:00