livid washed
cf5ba80ca4
Revamp [Gen 2] Random Battle ( #10220 )
...
* Gen 2 revamp
* Fix test
* RIP the meme
* victreebel
* vic again
2024-03-31 21:33:54 -06:00
ACakeWearingAHat
2900dc167f
Delete Gen 7 Random Doubles Battle ( #10224 )
...
* Delete Gen 7 Random Doubles Battle
* also the tests
* Update server/chat-plugins/randombattles/index.ts
* Update multi-random-runner.ts
---------
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-03-25 21:00:25 -06:00
Karthik
59c846c86b
Fix Rattled boosting Speed when Intimidate fails ( #10211 )
2024-03-16 21:14:19 -06:00
Andrew Werner
c2a033ba1e
Fix weather suppression abilities suppressing weather while ending
...
Fixes a few issues with protosynthesis as well.
2024-03-15 22:33:32 -04:00
Andrew Werner
4e1b3de4b1
Protosynthesis should ignore weather supressing abilities
2024-03-15 15:19:38 -04:00
Leonard Craft III
5d8be885c6
Fix paralysis Speed modifier timing
2024-03-14 21:40:07 -05:00
Karthik
44541b30d0
Fix Tera Stellar interaction with multihit moves ( #10185 )
2024-02-24 00:14:29 -06:00
Leonard Craft III
2bd62dba8d
Fix some more Terapagos mechanics ( #10184 )
...
* Fix some more Terapagos mechanics
* Update data/moves.ts
---------
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-02-23 22:55:06 -07:00
Leonard Craft III
9f743177e2
Separate Ally Switch from standard protection counters ( #10171 )
2024-02-19 22:25:55 -06:00
pyuk-bot
20dead22c9
Fix more Dragon Darts interactions ( #10161 )
2024-02-12 22:53:36 -06:00
Leonard Craft III
e40cec7700
Add test for Rage Fist and Dragon Darts
2024-02-05 21:30:50 -06:00
Kris Johnson
10e6529eeb
Revert "Redo #8134 "
...
This reverts commit 1e8c0c183f .
2024-01-31 09:48:15 -07:00
Karthik
8344a1da71
Fix Commander invulnerability check ( #10137 )
2024-01-30 14:33:12 -06:00
Leonard Craft III
553e577205
Fix interaction of Court Change, Sticky Web, and Defiant or Competitive ( #10131 )
2024-01-30 14:32:57 -06:00
Guangcong Luo
1e8c0c183f
Redo #8134
...
We usually do data changes in scripts rather than in Dex, so the
changes in #8134 were a nonstandard approach. I think I just
was not thinking when I merged that PR.
2024-01-29 12:35:24 +09:00
Leonard Craft III
834df75545
Improve VGC 2009 support ( #10120 )
2024-01-19 16:25:02 -07:00
Guangcong Luo
cec317671e
Cleanup RoomGame implementations again
...
This reinstates the recently-reverted RoomGame refactor/cleanup, but
with the bugs (forfeiting BestOfGame, and autojoin) fixed.
This reinstates:
- 6bccd4f622 Fix crash in bestof when expiring battles
- 2a48cbd064 Cleanup more RoomGame implementations
The latter fixes these, in addition to refactoring:
- Fix a race condition when destroying bestof games
- Fix `/tour settings scouting off` error message
2024-01-16 15:54:38 +09:00
Kris Johnson
10b041561d
Fix build
2024-01-11 10:17:44 -07:00
Leonard Craft III
4e15b260e9
Fix interaction of Me First and Assault Vest
2024-01-10 16:27:50 -06:00
Annika
e12df631e8
Fix tests for Room.createBattle change
...
Commit a07494784a made Room.createBattle return null instead of undefined on failure. This PR updates the unit tests to reflect that.
2024-01-07 20:05:22 -08: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
Leonard Craft III
8a5bbbd255
Implement Ability flags ( #10048 )
...
* Add AbilityFlags interface
* Add flags to abilities data (Karthik's script)
* Convert isBreakable to its new flag
* Convert most of isPermanent to its new flag
* Convert Trace to its new flag
* Convert Skill Swap to its new flag
* Convert Wandering Spirit to the failskillswap flag
* Update miscelleneous descriptions that depend on cantsuppress
* Convert Entrainment to its flag
* Convert Receiver/PoA to its flag
* Convert Role Play to its flag
* Implement Doodle failure conditions
* Various cleanup
* Breakable fixes
* How did I manage to do this
* Allow LightningRod to be breakable in Gen 3
* Implement notransform flag
* Tera Shell oopsie
* Fix more things after the rebase
* And fix Teraform Zero
* Update data/abilities.ts
* Update data/abilities.ts
* Update data/abilities.ts
* Update data/mods/partnersincrime/abilities.ts
* Update data/abilities.ts
* Update data/mods/sharedpower/abilities.ts
* Update abilities.ts
---------
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-01-02 23:55:17 -07:00
livid washed
647ebea024
Revamp [Gen 3] Random Battle ( #10056 )
...
* Set up framework for Gen 3 rands
* Fixing code from other gens, tests, incompatibilities
* Get Multiple Preferred types working
* Berry Sweeper
* STAB enforcement
* Abilities
* Abilities pt 2
* Items
* more abilities
* Removing teamgen limits (council decisions)
* oops
* simplify tests
* Remove unnecessary PType
* Fuse unnecessary set split
* HP EVs finetuning
* More HP EVs fiddling
* role tinkering
* Remove isDoubles from past gens code
* Remove lingering code from gen 4
* improve tests
* Psychic on Staller Lugia
* Update data/mods/gen3/random-teams.ts
---------
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2024-01-02 23:32:32 -07:00
singiamtel
acd02f8efd
Fix Prankster info leak ( #10065 )
...
* Fix prankster hint so it doesn't leak info
* Fix condition
* Add unit test to verify there's no hint
2024-01-02 22:49:13 -07:00
Leonard Craft III
3cc0a87282
Fix interaction of Tera Stellar and Transform ( #10066 )
...
* Fix interaction of Tera Stellar and Transform
* Update test/sim/moves/transform.js
Co-authored-by: pyuk-bot <msaimrkon@gmail.com>
---------
Co-authored-by: pyuk-bot <msaimrkon@gmail.com>
2024-01-02 15:17:50 -07:00
dot-Comfey
6bd57f6fde
Fix Unown forme validation in Gen 2 ( #10040 )
...
* Fix Unown forme validation in Gen 2
https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/post-9907946
* Update sim/team-validator.ts
Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
* Update sim/team-validator.ts
Co-authored-by: urkerab <urkerab@users.noreply.github.com>
* Update sim/team-validator.ts
Co-authored-by: urkerab <urkerab@users.noreply.github.com>
---------
Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
Co-authored-by: urkerab <urkerab@users.noreply.github.com>
2023-12-29 12:23:54 -07:00
TomOfTomKat
b608103806
Lock Tera Shell effect to Terapagos ( #10012 )
...
* Lock Tera Shell effect to Terapagos Stellar
https://www.smogon.com/forums/threads/scarlet-violet-battle-mechanics-research.3709545/page-48#post-9898594
* Update data/abilities.ts
* Update data/abilities.ts
* Update data/abilities.ts
* Resolve null target error
* Apply suggestions from code review
* Update terashell.js
* Update test/sim/abilities/terashell.js
Co-authored-by: André Bastos Dias <80102738+andrebastosdias@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: André Bastos Dias <80102738+andrebastosdias@users.noreply.github.com>
* Fix typo
* Without the debug print
---------
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
Co-authored-by: André Bastos Dias <80102738+andrebastosdias@users.noreply.github.com>
Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com>
2023-12-27 23:48:41 -07:00
Vinesh Kannan
3d067139ac
Add unit tests for Tera Blast ( #10029 )
2023-12-27 10:14:33 -06:00
Kris Johnson
0bec14e1f6
Fix build
2023-12-15 21:57:30 -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
Leonard Craft III
8cc8228095
Fix interaction of Tar Shot vs Terastallized targets
2023-11-15 22:51:26 -06:00
Leonard Craft III
4a63ad2081
Fix build
2023-11-15 21:11:29 -06:00
Karthik
92e13d06a8
Fix Egg Moves on Ursaluna-Bloodmoon and Greninja-Bond ( #9888 )
2023-11-15 20:32:42 -06:00
pyuk-bot
a8c4f4dcf6
Fix when Ogerpon's ability should change on Tera ( #9863 )
2023-11-15 19:57:18 -06:00
pyuk-bot
8e47521d77
Fix Neutralizing Gas ending vs. Embody Aspect ( #9903 )
2023-11-15 19:54:40 -06:00
livid washed
84ac9e9e3e
Revamp [Gen 4] Random Battle ( #9883 )
2023-11-05 17:28:02 -06:00
pyuk-bot
edbb640783
Neutralizing Gas: Don't restart Shielded abilities ( #9862 )
2023-11-01 21:32:28 -05:00
pyuk-bot
5624137e43
Make Booster Energy wait for hazards ( #9844 )
2023-10-17 21:36:45 -05:00
Leonard Craft III
f666f89564
Improve Fusion move combo tests
2023-10-16 23:00:46 -05:00
Kris Johnson
0fae2dfc9d
Fix build
2023-10-15 11:09:57 -06:00
Karthik
e406ca3abe
Syrup Bomb fixes ( #9836 )
2023-10-14 23:37:36 -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
Leonard Craft III
ba2a5e31f2
Fix Commander with Neutralizing Gas after Dondozo faints
2023-09-26 19:02:29 -05:00
Leonard Craft III
9bccea624f
Fix Commander's interaction with Ability suppression ( #9800 )
2023-09-24 22:56:50 -05:00
dot-Comfey
6bcb9147bf
Fix egg move validation for female-only Pokemon ( #9796 )
2023-09-24 12:16:31 -04: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
pyuk-bot
98d026a7d1
Pokemon transformed into Ogerpon cannot Tera ( #9774 )
2023-09-14 20:39:59 -05:00
Alexander B
f29e5f2d83
Tests: Give a useful error message for Gen 9 Rands ( #9764 )
2023-09-13 22:42:49 -04:00