Commit Graph

1542 Commits

Author SHA1 Message Date
André Bastos Dias
3d4f34e784
Correctly implement Cud Chew and Slow Start (#11376)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Co-authored-by: Karthik Bandagonda <32044378+Karthik99999@users.noreply.github.com>
2025-09-07 15:24:34 -07:00
Mia
8b1efe7e45 Sim: Verbosely debug validator effectType mismatches 2025-09-01 11:28:10 -05:00
dot-Comfey
7357f0fa8f
Add HOME relearner for LA (#11409)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* Add HOME relearner for LA

* Update dex-species.ts

Workaround for a crash caused by using the LA mod in dexsearch

* Fix more crashes

* `gen8legendsarceus` -> `gen8legends`
2025-08-31 23:59:04 -06:00
ACakeWearingAHat
c3e0bbd61d
Revamp Gen 9 Free-For-All Random Battle (#11406)
* WIP free-for-all revamp

* bonus touches

* Create ffa-sets.json

* Most stuff besides items

* Fix plate distribution logic

* The Palafin thing

* Update teams.ts

* Update index.ts

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

Co-authored-by: pyuk-bot <21160928+pyuk-bot@users.noreply.github.com>

---------

Co-authored-by: MacChaeger <21160928+pyuk-bot@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-08-31 23:58:46 -06:00
Kris Johnson
8797d4628c Remove inactive ladders 2025-08-31 23:57:15 -06:00
Yoshiblaze
9c4a4277fb
Add New Pet Mod of the Month: Do Not Use Random Battle (#11413)
* Change Scream Tail's ability

* Balls Random Battle: Initial Commit

* Fix errors

* fix 1 more error

* Team Generator Temp Fix + Add Broadcast

* actually add the broadcast message

* Add new Virus sprite

* Add new Virus sprite for real this time

* September PMOTM Initial Commit

* Fix errors

* Fix error

* Possible error fix + set adjustments

* Remove console.log

* Move Pet Mods to Column 2

* Update config/formats.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-08-31 23:38:13 -06:00
dot-Comfey
b27ddb4ae2
Add BDSP HOME relearner and fix BDSP event legality (#11374)
* Allow BDSP moves to be learned via HOME relearner

* Update team-validator.ts

Commented out my changes to see if this was causing a test to fail; turns out my code isn't at fault.

* Update team-validator.ts

* Don't get learnset for Pokemon that don't exist in BDSP

Without the isNonstandard check, the learnset will be taken from the base learnsets.ts file, which could result in detecting moves that are actually not from BDSP.

* Fix BDSP legality

* Update team-validator.ts

* Fix test and learnsets

* Update data.js

* Prevent illegal transfers to/from BDSP

Nincada from outside BDSP cannot be sent to BDSP, Nincada from BDSP cannot be sent to other Switch games, and Spinda cannot be sent from or to BDSP. Currently this has no effect in regular Gen 9, but it technically does in Gen 9 Natdex (I have no idea if anything changes), and it may affect future generations.
2025-08-27 12:15:59 -06:00
Vaibhav Hariani
51c5cc594b
Fix comments for priority in the sim (#11385) 2025-08-24 13:19:27 -07:00
André Bastos Dias
3468744364
Directly reference volatile when getting sourceEffect for partiallytrapped damage (#11360) 2025-08-14 11:46:02 -04:00
dot-Comfey
60a4698695
Allow past gen moves to be learned via HOME relearner (#11362) 2025-08-13 14:35:48 -06:00
André Bastos Dias
3a67660d9e
Fix Trace message timing (#11282)
Co-authored-by: Karthik99999 <bandagondak0217@gmail.com>
2025-08-13 14:11:49 -04:00
pyuk-bot
1ee9efa2c8
Always allow canceling a switch with Shed Shell (#11365)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-12 19:57:37 -04:00
Kris Johnson
04454f58ac AAA: Fix validation on Arceus/Silvally formes 2025-08-11 16:29:00 -06:00
André Bastos Dias
73bf84e9b4
Fix OHKO moves in Gen 3 (#11355)
* Fix OHKO moves in Gen 3

* Fix lint
2025-08-11 14:16:09 -06:00
André Bastos Dias
0d9a9f3ef8
Fix Recycle in Gens 3-4 (#11348)
* Fix Recycle in Gens 3-4

* Revert refactor

* Add Recycle as a sourceEffect
2025-08-11 14:14:15 -06:00
Karthik99999
dbdb492557 Fix forme tier inheritance
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-09 12:45:16 -04:00
Slayer95
b5d398e6d7
Fix info leak on side-specific battle.hint API (#11307)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-07 07:10:54 -07:00
André Bastos Dias
f753dbfdf0
Refactor stat calculation (#11321)
* Refactor stat calculation

* Simplify conditions

* Preserve comments

* Fix Nature Swap
2025-08-04 20:50:49 -06:00
André Bastos Dias
e473be87d1
Refactor Let's Go Normal Rules (#11324)
* Allow AVs should take happiness into account

* Default happiness is already set in pokemon.ts

* Default happiness in the validator

natureModify only receives the set, not the actual Pokemon :/

* Implement Let's Go Normal Rules

* Fixes

* Remove EV limit

* Remove condition

* Add EV Limit = 0

Avoid "Pokemon has exactly 0 EVs - did you forget to EV it?"

* Final fix

* Happiness is fixed to 70

* Revert changes

* Rename Let's Go to LGPE

* Re-add comment
2025-08-04 20:48:27 -06:00
Yoshiblaze
936f9e4680
Add August Pet Mod of the Month (#11303)
Some checks are pending
Node.js CI / build (20.x) (push) Waiting to run
Node.js CI / build (22.x) (push) Waiting to run
Node.js CI / build (24.x) (push) Waiting to run
* Change Scream Tail's ability

* Balls Random Battle: Initial Commit

* Fix errors

* fix 1 more error

* Team Generator Temp Fix + Add Broadcast

* actually add the broadcast message

* Add new Virus sprite

* Add new Virus sprite for real this time
2025-08-01 07:52:34 -06:00
Mia
2467596832 Teams: Censor nicknames on display, not upload 2025-07-24 00:06:03 -05:00
André Bastos Dias
fd21559ba8
Refactor Gen 1 partial trapping (#11189) 2025-07-22 02:12:20 -07:00
André Bastos Dias
f74586f765
Implement Imprison disabling logic using Test Fight (#11208) 2025-07-22 02:09:45 -07:00
André Bastos Dias
3b7b1d2864
Don't update the timer when an updated request is sent (#11251)
* Don't add time if there is a request update

* Ups

* Change prevRequest to updatedRequest

* Fix tests

* Refactor

* Fix tests
2025-07-13 15:38:58 -06:00
Slayer95
07b90b13cf
Refactor Team Preview to avoid code duplication (#11237)
DRY is particularly relevant because of the hardcodes,
which are unlikely to be kept in sync in OM code.
2025-07-12 20:57:05 -06:00
André Bastos Dias
9bcca73a33
Modify HP after forme regression (#11261)
* Modify HP after forme regression

* Clip negative HP

* Change method name

* Don't reveal illusion

Should be redundant

* Move message timing

* Fix dynamax

* Clip HP for possible OMs

* Check using baseMaxHp

* Conditions.........

* Use ternary operation

* Fix comment
2025-07-11 01:32:43 -06:00
André Bastos Dias
6a44ac42b9
Fix Klutz's interaction with Fling (#11203) 2025-07-01 10:13:16 -04:00
urkerab
4e1b6e1d7f
Simplify Battlefields (#11233) 2025-07-01 08:09:59 -06:00
urkerab
862f409e57
SideConditionStart event should target the side with the condition (#11216)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* SideConditionStart event should target the side with the condition

* Use Slayer95's approach

* Delete data/mods/gen9fe/abilities.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-07-01 01:34:17 -06:00
André Bastos Dias
ac19dbb9e5
Move the gender logic to the validator (#11198)
* Move the gender logic to the validator

* Modify test seed

* Modify seed for other test

* Fix for RandBats

* Remove gender enforcement

* Revert "Remove gender enforcement"

This reverts commit c9c66a3725.

* Allow choosing genderless Pokemon

Without this, genders will always default to '' and never to 'N'
2025-07-01 01:26:42 -06:00
Yoshiblaze
92482df250
Add July Pet Mod of the Month (VaporeMons Random Battle) (#11230)
* July PMOTM Initial Commit

* Clean up conditions.ts and items.ts

* Clean up abilities.ts

* Clean up pokedex.ts

* Clean up moves.ts Pt. 1

* just changing shelter (i keep losing track of lines)

* Clean up moves.ts Pt. 3 (lost track of lines again)

* Clean up moves.ts Pt. 4

* Clean up moves.ts Pt. 5

* Final clean up Pt. 1

* Final clean up Pt. 2

* Final clean up Pt. 2.1

* Final clean up Pt. 3

* desert storm fix

* desert storm "fix"

* Add VaporeMons to teams.ts

* Remove gen9fe from formats.ts

* Adding VaporeMons Randbats Sets Pt. 1

* Fix Ditto

* Add Randbats Sets Pt. 2

* Add Randbats Sets Pt. 3

* Shorten Garganacl's line

* Fix Typo

* Add Randbats Sets Pt. 4

* Fix error

* Final Randbats Sets

* Minor bugfixes

* Remove Speed-boosting Natures

* Extremely Minor Fixes

* Fix Vaporemons issues

* Fix style errors

* Fix Death Aura & Fair Fight not ending

* Remove test format and Fusion Evolution

* Give Skarmory Sledgehammer Blow

* Fix Illusion's flags

* Add Illusion Level Mod

---------

Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
2025-07-01 01:22:44 -06:00
Karthik Bandagonda
d3d834c91a
Allow Picked Team Size to be used without Team Preview (#11224)
* Add Pick Team rule

* Make Team Preview and Pick Team mutually exclusive

* Automatically apply rule if Picked Team Size exists without preview

* Remove mutually exclusive part

* Move teamsize to start action
2025-07-01 01:20:57 -06:00
Kris Johnson
babf4f6576 Add July 2025 rotational formats 2025-07-01 01:15:44 -06:00
André Bastos Dias
3b4a2c9bf5
Fix HP bar percentages and colours (#11213) 2025-06-25 14:14:46 -07:00
André Bastos Dias
b598355b66
Gen 3: Fix Magnet Pull not trapping allies (#11207)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-06-24 23:51:48 -04:00
André Bastos Dias
dc7294ed6e
Remove unused code (#11215)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
* Remove unused Move#negateSecondary
* Remove unused 'SubDamage' event
* Remove unused Move#pressureTarget
* Partially remove unused Move#spreadModifier
2025-06-22 08:21:19 -07:00
André Bastos Dias
73a8b3188b
Break Illusion on Tera formes (#11190) 2025-06-14 18:59:23 -06:00
Dieter Reinert
561fe5e375
Dex: Update isName signature to match expected inputs (#11172) 2025-06-03 15:22:05 -07:00
Dieter Reinert
fd1c2f1738
Dex: Prevent isName crash on null/undefined (#11167) 2025-06-02 16:00:40 -07:00
Kris Johnson
8dfed1fa21 Update runImmunity type for mods 2025-06-02 01:12:29 -06:00
André Bastos Dias
eb3c1f6a39
Fix Magic Bounce in Free-For-All battles (#11144)
* Fix Magic Bounce in Free-For-All battles

* Fix test with unmodified speed

* Modify test name

* Fix test name

* Fix test
2025-06-01 02:00:26 -06:00
André Bastos Dias
3e9d498805
Implement genderless Pokemon in Hackmons (#11161)
* Implement genderless Pokemon in Hackmons

* Fix

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

* Fix 2

* Fix RNG test

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-06-01 01:56:12 -06:00
Yoshiblaze
909aefddbf
Add June Pet Mod of the Season: Fusion Evolution Random Battle (#11153)
* June PMOTM Initial Commit

* Initial Cleanup Pt. 1

* Initial Cleanup Pt. 2

* Initial Cleanup Pt. 3

* Initial Cleanup Pt. 4

* Fix Trailing Spaces

* Fix Indents

* Fix initial style errors

* One more small fix

* Initial random-teams.ts creation

* Shorten Line

* Add Egg Groups

* More cleanup Pt. 1

* More cleanup Pt. 2

* Remove assertion

* Final Ability Cleanup for now

* Bring scripts.ts to modern conventions

* Fix indent and line length

* Temporarily change unit tests to not bug out

* Temporarily change unit tests to not bug out

* Add format, fix style

* Fix two more minor errors

* Fix Random Teams Error

* Change opening message

* Add Sprite Viewer

* fix 696 indents at the same time

* Remove fix for local-only bug

* Move Bad 'n Boosted to challengeable OMs

* Update config/formats.ts

---------

Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-06-01 01:55:07 -06:00
Karthik99999
6a8e18ec96 Fix Dynamax Request setting gmax parameter when the set does not have gmax 2025-05-31 12:33:11 -04:00
André Bastos Dias
6513f4b18a
Activate Wonder Guard if the target is immune (#11130)
* Activate Wonder Guard if the target is immune

* Lint

* Correctly check for immunities

* Refactor runImmunity

* Change all move.type to move

For example, this fixes Thousand Arrows vs Air Ballon Terapagos. Tera Shell was not activating.

* Remove unnecessary cast
2025-05-31 01:28:46 -06:00
Guangcong Luo
2b05770780 Add forme names as fuzzy matches
(For `/dt` etc)
2025-05-30 19:54:00 -07:00
EvGym
ee3d1805c9
Add Gen 3 Colosseum format (#11135)
* Adding gen 3 colosseum format, updating win check

* Update formats.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-05-30 18:43:52 -06:00
André Bastos Dias
859f5f5be8
Fix interaction between Pursuit and Follow Me (#10991) 2025-05-28 15:54:10 -04:00
André Bastos Dias
0f663cd46f
Refactor White Herb activation (#11133) 2025-05-25 12:57:58 -07:00
André Bastos Dias
14b3c117b3
Fix Tera Blast's interaction with Unaware (#10897)
* Fix Tera Blast's interaction with Unaware

* Remove comment

* Update to ESLint 9

* Add Download + Simple test
2025-05-25 10:02:45 -06:00