Commit Graph

1299 Commits

Author SHA1 Message Date
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
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
Leonard Craft III
3933c2198d
Fix Poison Touch's interaction with Pledge Rainbow (#9756) 2023-09-10 20:57:48 -05: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
livid washed
ab59e1d86c
Revamp [Gen 6] Random Battle (#9744) 2023-09-03 17:46:35 -05:00
Alexander B
9a97e75ad5
Make Wind Rider and Guard Dog breakable + tests (#9734) 2023-08-27 23:01:52 -05: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
Leonard Craft III
8133e4d084 Add tests for behavior of Pollen Puff and Heal Block 2023-08-14 01:23:22 -05:00
Leonard Craft III
dfc38b06ff Fix Commander mechanics with Transform and Multi Battles 2023-08-13 22:35:10 -05:00
dot-Comfey
9eebba0e0d
Fix low level egg move legality (#9709) 2023-08-13 21:52:19 -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
Karthik
2a3b5be624
Allow Alolans to learn Gen 9 egg moves from non-Alolan prevos (#9681) 2023-08-02 22:44:03 -04:00
Kris Johnson
2e8b9a2863 BH: Fix Xerneas-Neutral 2023-08-01 09:54:36 -06:00
Kris Johnson
2f43805700
Fix Gen 9 Hackmons legality (#9689) 2023-07-31 23:12:09 -05:00
dot-Comfey
01e35f4f2d
Add Pokemon GO support (#9646) 2023-07-31 19:27:06 -05:00
adrivrie
ff257f62d8
Fix Ice Spinner removing Terrain when fainting from Rocky Helmet (#9682) 2023-07-31 01:15:42 -05:00
Leonard Craft III
404b6fd514 Add tests for upcoming Hackmons changes 2023-07-31 00:24:51 -05:00
Karthik
e218cb9dbb
Properly implement Chloroblast recoil (#9648) 2023-07-15 14:54:49 -05:00
Kris Johnson
c7a0444bb4 Fix build 2023-07-01 11:14:58 -06:00
Leonard Craft III
d38194913d Fix After You in Free-For-All battles 2023-06-26 23:48:26 -05:00
Karthik
274264ebee
Gen 9: Reveal Arceus forme in Team Preview (#9610) 2023-06-19 20:57:33 -04:00
Kris Johnson
f6e1cfe19e
Refactor Ash-Greninja (#9606) 2023-06-18 22:51:02 -05:00
livid washed
928cd3e79a
Implement Gen 9 Random Doubles Battle (#9601) 2023-06-16 12:35:11 -05:00
Leonard Craft III
30e1c2dfc3 Fix Intrepid Sword/Dauntless Shield at +6
Thanks Zaggyo!
2023-06-15 22:38:27 -05:00
Leonard Craft III
feb9974e6a Fix hazard-setting/removing moves on self-KOs and with Sheer Force 2023-06-15 21:43:07 -05:00