Commit Graph

1237 Commits

Author SHA1 Message Date
livid washed
60b134332f
Gen 5 Random Battles updates (#9244)
* Prevent same type STAB when undesirable

* Heracross only gets Guts if it has Facade and would get an orb

* Add Roost to Gliscor

* Guarantee recovery on support/defensive mons

* linting

* Implement Heracross condition more efficiently

* easier Gliscor case

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

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>

* linting

Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com>
2022-12-29 19:46:08 -06:00
Alexander B
47dd6d0e55
Gen 6-8 Random Battles: Fix unused moves (#9256) 2022-12-29 19:44:28 -06:00
adrivrie
1a20b25f52
Gen 6/7 Random Battle: Give Seaking Swift Swim with Rain Dance (#9247)
* seaking now gets swift swim when there's rain

* fix trailing space
2022-12-29 19:43:53 -06:00
Leonard Craft III
65951e3b69
Fix more SV item legality (#9236) 2022-12-27 13:43:34 -05:00
Leonard Craft III
fa56e1658f
Gen IX: Really fix Curse targeting behavior (#9218) 2022-12-27 13:43:07 -05:00
Karthik
bffabd437c
Don't reveal Dudunsparce forme on Team Preview (#9239) 2022-12-26 21:41:56 -07:00
Karthik
65dcedc557
Implement proper Origin forme mechanics (#9227) 2022-12-26 12:20:44 -06:00
Kris Johnson
710c50f233
Move Scrafty to PUBL 2022-12-23 12:48:27 -07:00
Marty
2fea293ecc Revert "Gen 4: Ensure Brick Break breaks screens of immune targets (#9149)"
This reverts commit 06453020ee.
2022-12-22 20:02:58 -05:00
Hisuian Zoroark
a8a0465cf1
CAP: Improve Persistent activation (#9214) 2022-12-22 20:00:49 -05:00
Leonard Craft III
043092bcff Revert "Gen IX: Fix Curse targeting behavior (#9205)"
This reverts commit dd529ec093.
2022-12-22 16:01:12 -06:00
Leonard Craft III
dd529ec093
Gen IX: Fix Curse targeting behavior (#9205) 2022-12-22 15:23:18 -06:00
livid washed
289ff26038
Gen 1: Fix Bide's implementation (#9201)
* Remove lastDamage as a field for Bide + remove some useless fields

* Bide: use time instead of duration, so that it doesn't get changed with slp/frz/etc

* Bide totalDamage should be adjusted before reducing Bide time. Damage counting should be done when the Bide user moves, not when the foe attacks it

* Call the stored damage 'damage' rather than 'totalDamage'

* Fix Bide target, Bide can hit substitutes, add test
s

* Add test for Bide vs switching / using moves that don't reset lastDamage

* Bide damage is reset to 0 when a Pokemon faints

* Add test for Bide when asleep

* Add Desync messages for Bide clearing stored damage when a Pokemon faints

* Mention Desync Clause Mod in test

* Specify 'in gen 1' in hint messages

* Bide is paused if disabled

* Improve Bide-Disable test

* Further adjust the Bide-Disable test
2022-12-20 15:02:27 -08:00
Tarrembeau
c6571a1512
Gen 5 Random Battles: Update movepools (#9209) 2022-12-20 09:27:45 -06:00
Kris Johnson
313ce1da69 Update Sneasler and's evolution method 2022-12-19 17:49:25 -07:00
Kris Johnson
49bd6bc0f5 Update Crabominable, Scovillain, and Gholdengo evolution methods 2022-12-19 17:42:21 -07:00
Ashley
06453020ee
Gen 4: Ensure Brick Break breaks screens of immune targets (#9149) 2022-12-19 19:32:07 -05:00
Tarrembeau
c58dfa01a1
Gen1 Random Battles: Make Ditto level 100 (#9152)
https://discord.com/channels/294651453279174656/809413397840920586/1037052464865755197
2022-12-16 19:01:02 -07:00
Alexander B
9d555fb2c8
Gen 7 Random Battle Updates (#9153) 2022-12-16 18:59:23 -07:00
Tarrembeau
c3bd4dd2dd
Gen3 Random Battles: Update movepools (#9162)
https://discord.com/channels/294651453279174656/763038340664524840/1051853737418817676
2022-12-16 18:58:05 -07:00
Marty
f9ef871e90 CAP: Add Gen 9 ladder and more
- add Saharascal
- reorganize learnsets
- nerf Gen 5/6 Aurumoth
- add challenge options for Gen 4 and 5

Thanks, Wulfanator!
2022-12-16 12:11:53 -05:00
adrivrie
7075637db5
add rating for every ability in gen8 (#9161) 2022-12-14 22:11:41 -07:00
Kris Johnson
0d16603f95 Add updated OM support 2022-12-14 15:57:08 -07:00
Alexander B
d8720e6706
Update randomized formats (#9184)
* Update randomized formats

* Delete/hide more stuff

* Fix Mayhem

* copy error

* oops !

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

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
2022-12-14 12:44:46 -07:00
pyuk-bot
2bc2100a7b
Make -Ate abilities share a ...Boosted property (#9174) 2022-12-13 21:43:52 -06:00
ACakeWearingAHat
686a020e2c
Implement Gen 9 Random Battle (#9169)
* Move gen 8 rands code to gen8 folder

* Add test data file

* Remove hidden power from random-teams

* Remove BDSP

* Remove item selection for now

* Remove ability culling for now

* Remove move culling for now

* Obtain allowed pokemon from random-sets.json

* Add tera blast counter

* linting

* Remove Dynamax from random-teams

* Remove unnecessary check

* Add role and tera type + fix data format

* remove gmax

* Disable tier for now

* movePool should have move ids not names

* linting

* Add required moves

* Create an individual function for moveset generation

* Return moves early if <= 4 moves available

* Add counter for individual STABS, including tera

* Tera Blast is tera stab

* Add some moves (help with testing)

* Remove culling moves from moveset

* Add new hazard removing moves

* Test STAB and recovery moves

* Cull movepool each time a move is added

* Black Sludge only if tera type is Poison

* teratype and role to functions

* Test some 'High Priority' items

* Move ability selection to its own function

* Fix ability sorting/selection

* No need to go through the move adding process if number of moves in set + movepool is 4

* lint

* Remove some pokemon that aren't in gen 9 randbats

* Tera STAB example

* Allow for forcing abilities

* Silvally not in gen 9

* Move level calculation to getLevel

* Tier-based levelling and doubles coverage

* Sitrus Berry default item for doubles

* Avoid hard-coding for species frequency

* Linting + replace hail with snow

* Change a comment slightly

* Fix STAB moves: need to check that they do damage

* minor thing

* Comment out tera type requirement

* comments

* Add gen 9 randbats format

* STAB counter

* Remove setupType

* Add cullMutlaExclusive()

* Remove unnecessary functions

* Move CC/HC to the bottom

* Allow movesA and movesB to be overlapping

* Initialization of fill-out

* linting

* Setup moveEnforcementCheckers

* Type/STAB counter only updates for moves that aren't in noSTAB

* Account for type changing abilities earlier

* STAB enforcement

* Setup moves array

* linting

* Revert Setup change

* More fillout

* move tweaks

* Tera STAB enforcement

* Remove rest from recovery moves

* Enforce setup

* Add Facade if Guts

* Misc enforced moves

* Enforce more moves

* Enforce STAB priority

* Setup forced on tera blast user

* check if there are moves of the desired kind before sampling

* move tweaks

* Need to check if setupMoves is empty

* fix brute bonnet

* fix scream tail

* Finish up move incompatibilities

* fix scream tail harder

* Formatting

* Fix some things

* End culling early if movepool gets too small

* Paired moves: end culling early if movepool gets too small

* Remove 'stop cull' for testing purposes

* If 2/4 moves are filled, remove single unpaired move

* Remove now unnecessary hardcodes

* Use MovePairs instead of hardcoding pairs

* addMove function for adding moves to moveset

* Move updates

* Extra check is unnecessary, moves and movePool should never have moves in common

* Mach Punch required on Breloom

* lint

* Remove Synthesis from Brute Bonnet (5 enforced moves)

* adjust oranguru tera types

* finish up moves

* Force abilities

* Update my favorite pokemon

* linting

* Add shouldCullAbility

* fix setup counter

* Move sorting abilities below hardcoding

* minor change

* Add fields

* fix sawsbuck typo

* Improve the species generation + remove Basculegion and Houndstone as possible leads

* Fix Species frequency

* Linting

* veluza can actually run sharpness

* code all ability rejections

* Update random-sets.json

* EVs/IVs tinkering change

* fix capitalization error

* Perform small fixes

* fix moves that don't exist

* linting

* Magnezone hardcode

* Items

* Update random-teams.ts

* linting

* prep for leveling

* long list for ditto

* comment out a line of text

* finish individualizing levels and also melop sucks

* add lokix thing

* revavroom

* updates from testing

* komala probably shouldn't have dark as an option

* tropius fix

* intim mence is ok

* kleavor should not get sheer force

* why did we give hydre earth power lmao

* why did we put leech seed on toed

* forgot to sitrusify cheek pouch mons

* fix enamorus

* Syntax error

* Change Zoroark lastmon condition to level >= 72

* Fix Zoroark-level constraint to allow for level forcing

* Fix singles vs doubles definition

* Use species.id as much as possible for set generation

* updates from testing

* allow flash fire heatran

* additional sash parameters

* reject stakeout if the user has zero attacks

* fixes

* update pawmot abilities

* Change iron fist counter to a number

* Force Own Tempo on Petal Dance Lilligant

* Add T-wave to SD groudon set

* Slush Rush guaranteed with Snowscape + possible if team has snow

* Rework ability sorting: find list of non-culled abilities before sorting and selecting

* Move S/V rands to The Forefront

* fix regidrago

* Small fix to choosing allowed abilities

* update aliases

* Update Arcanines

* Change from forEach to for, since index is no longer being used

* first impression is bug stab now

* set updates from the randscord

* Update /randbats to gen 9

* Add Tera Type to /randbats output

* things to do with steel

* Update data/random-teams.ts

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

* Update data/random-teams.ts

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

* Update data/random-teams.ts

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

* Update data/random-teams.ts

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

* Update data/random-teams.ts

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

* Apply suggestions from code review

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

* Move Battle Factory and BSS Factory to mods/gen8 folder

* Remove gen8 factory sets test

* Copy over random-sets.json when building

* add missing heatran-based incompatibility

* fix sableye not always getting Recover

* set updates

* start movin' cap 1v1

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

* finish movin' cap 1v1

* Update random-battles.ts

* Update random-teams.ts

* Update random-teams.ts

Co-authored-by: livid washed <liuc.kelvin9901@hotmail.com>
Co-authored-by: livid washed <115855253+livid-washed@users.noreply.github.com>
Co-authored-by: Alexander B <4866817+MathyFurret@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2022-12-13 17:56:29 -07:00
Karthik
fd1fa2b53d
Properly remove Charge after using an Electric move (#9167) 2022-12-12 22:39:27 -06:00
Leonard Craft III
fcb159ba27
Fix coins text for Pay Day and Make it Rain (#9158) 2022-12-12 18:52:47 -06:00
livid washed
dc29389347
Gen 1: Actually fix Metronome calling Counter (#9156)
* Actually fix Metronome calling Counter

* Use set instead of array for lastDamage skipping moves

* Add Metronome-Counter test
2022-12-11 14:31:43 -08:00
pyuk-bot
eb79405b45
Mark more nonstandard items in Gen 9 (#9144) 2022-12-09 19:14:21 -06:00
livid washed
d59bce51c6
Gen 1: Fix more Counter bugs (#9136)
* Gen 1: SonicBoom can be Countered

* OHKO moves do 65535 damage (matters for Counter against sub)

* Move damage comparison with target hp outside getDamage()

* Remove a blank line

* Move damage comparison with target hp outside getDamage() (Stadium)

* Add counter test

* Fix Metronome not failing if calling Counter (move setting lastDamage before tryMoveHit)

* Do the same for Stadium

* Start phasing out pokemon.lastDamage from Gen 1 code

* Failed Counter doesn't zero lastDamage

* When a move misses, battle.lastDamage is set to 0

* Remove all pokemon.lastDamage

* Remove a couple of comments
2022-12-08 16:07:39 -08:00
livid washed
04e2401688
Gens 2-3: Fix accuracy of moves (#9143)
* Gen 2: Lock-On and Pain Split have 100% accuracy and check for accuracy

* Gen 3: Moves that don't check accuracy should be listed as true accuracy

* Gen 3: Nightmare doesn't check for accuracy

* Gen 3: Foresight and Odor Sleuth check accuracy

* Gen 3: Memento does not accuracy check

* Gen 3: Mind Reader checks accuracy

* Gen 2: Nightmare doesn't check accuracy
2022-12-08 16:06:03 -08:00
WeWuzNidokangz
580ed48329
OMs: Fix generation consistency (#9088)
* Linked: Fix generation consistency

* Fix same issue with Pokebilities

* Clean up
2022-12-05 16:05:08 -07:00
Hisuian Zoroark
58dcf59b9a
Update Partners in Crime to Gen 9 (#8987)
* PP from ally moves is no longer infinite in PiC

* add deductpp to modded pokemon

* eep

* Refactor when start effects activate upon switching in.

* Add new effects for leppa berry consumption

* I forgot about these items ngl

* add some new support for moves

* Restrict Wandering Spirit, add extra failsafe

* fix things

* Last minute bugfix

* Update banlist

* start working on gen 9

* update nextturn

* a

* more stuff

* Update formats.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2022-12-05 16:02:58 -07:00
pyuk-bot
7a6a8441cc
Fix Protosynthesis/Quark Drive/Booster Energy (#9118) 2022-12-04 16:20:21 -05:00
Karthik
98544fe5f9
Fix Charge/Wind Abilities (#9113) 2022-12-04 12:53:18 -05:00
kittenchilly
30c41dcfbf
Fix Last Respects and Supreme Overlord (#9111) 2022-12-04 12:46:28 -05:00
livid washed
cdb10c9016
Gen 1: Minor corrections for stat down overflow (#9099)
* Minor fixes for stat down overflow gen1

* Remove clamping from above for screens

* Add space for hint
2022-12-01 20:47:08 -08:00
Kris Johnson
dd22d76de9 Actually fix Lapras legality 2022-12-01 21:10:04 -07:00
Kris Johnson
5422ce0c58 Fix build 2022-12-01 00:55:02 -07:00
Kris Johnson
90ac55a11e Full Potential: Fix crash 2022-12-01 00:44:46 -07:00
Kris Johnson
7221bb97ce Fix build 2022-11-30 23:13:18 -07:00
pyuk-bot
1a6668b3b0
Fix unobtainable move validation (#9096)
* Fix validation of moves unobtainable in Gen 9

* remove hyphen

* Update data/rulesets.ts

* Shorten unobtainable move rule name

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2022-11-30 23:08:08 -07:00
Kris Johnson
58a196017b Add December 2022 OMotM/RoA Spotlight 2022-11-30 23:06:50 -07:00
Kris Johnson
0b53ab2d5a Berry Juice isn't in Gen 9 2022-11-30 20:43:22 -07:00
livid washed
6cc75a6f88
Gen 1: Fix some more Counter inaccuracies (#9091)
* Move Gen 1 Counter tests into its own section

* Confusion damage, (h)jk recoil, and draining can be countered in gen 1

* Recoil and Drain round down in gen 1 (against substitute)

* Add tests for Counter + fix linting issue

* lastSelectedMove is updated when Mirror Move or Metronome calls another move

* Move pokemon.side.lastMove setting into a (more) correct location

* move pokemon.lastMove as well

* Remove unnecessary seed in test
2022-11-30 13:14:03 -08:00
livid washed
11dfeb3179
Gen 1: Fix Toxic-Haze interaction (#9085)
* Haze resets Toxic counter

* Update comment

* Change Haze test to one that should be correct regardless of implementation
2022-11-30 12:56:26 -08:00
livid washed
153377a5b8
Gen 1: Fix stat modification, implement stat overflow glitch (#9071)
* The volatiles don't actually do anything

* Gen 1: implement stat down overflow glitch

* Change the wording of the hint slightly

* Add hint for division by zero avoidance
2022-11-30 12:55:47 -08:00
Leonard Craft III
70cdd5a4cb Pixie Plate is unobtainable 2022-11-29 21:01:06 -06:00
Leonard Craft III
2d4e89d53e Lansat Berry is obtainable 2022-11-29 20:59:01 -06:00