Commit Graph

1507 Commits

Author SHA1 Message Date
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
Sergio Garcia
b81ff9a69a
Remove useless spreads (#11132) 2025-05-24 16:19:48 -07:00
Guangcong Luo
e07080ce5c
Support fuzzy searching /dt etc (#11124)
This add's the teambuilder's fuzzy matching to /dt and similar commands.
2025-05-23 00:26:23 -07:00
André Bastos Dias
99ff2921e5
Fix Mold Breaker interactions with abilities' Start events (#10877) 2025-05-20 19:06:22 -07:00
André Bastos Dias
a7f7e9049c
Send detailschange after forme regression (#11113) 2025-05-16 10:26:36 -07:00
André Bastos Dias
8158284427
Refactor fainted forme regression (#10878)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-16 07:40:49 -07:00
Guangcong Luo
091241f1bb
Sim: Emit requests after updates (#11105)
Fixes #8546
2025-05-15 20:30:02 -07:00
shrianshChari
0e2a8001ff
Validator: Check if Smeargle is nonstandard instead of its tier (#11107) 2025-05-14 08:33:10 -07:00
André Bastos Dias
a4fbc8619b
Fix Gen 4 Snatch (#10905) 2025-05-14 08:26:15 -07:00
shrianshChari
f23c953273
Fix egg move validation when Smeargle is Unreleased (#11102)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-13 19:46:36 -07:00
André Bastos Dias
d25aba9aff
Fix: Terastallize Ogerpon and Terapagos with different Tera types (#10814) 2025-05-13 14:44:46 -07:00
Guangcong Luo
72d7d38568
SIM-PROTOCOL: Update for clarity
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Fixes #9911
2025-05-13 13:29:53 -07:00
André Bastos Dias
79fd439fcd
Sim: Refactor event callbacks into a getter (#11089)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-05-04 18:12:59 -07:00
Yoshiblaze
78247527fd
Add New Pet Mod Leader's Choice, Community Create-A-Pet Mod 2024 (#11054)
* Add CCAPM Pt. 1

* Add CCAPM Pt. 2

* Add CCAPM Pt. 3

* Add CCAPM Pt. 4

* Add CCAPM Spreadsheet Broadcast

* Last second set change

* Add searchShow: false,
2025-04-30 23:36:03 -06:00
HiZo
3c2a45c68c
Battles: Show custom rules in log (#11047)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-04-25 20:58:41 -07:00
André Bastos Dias
6b3d0eefbd
Fix Sparkling Aria's interaction with Shield Dust (#10882)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-23 16:57:31 -07:00
Sergio Garcia
fc23103de1
Fix random typos (#11020)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-04-13 23:59:36 -07:00
Karthik Bandagonda
06d8a8963b
Ensure megax and megay actions show up in inputlog (#11014) 2025-04-04 23:28:06 -05:00
Kris Johnson
46b2ab79b4 Add April 2024 OMotM 2025-03-31 23:59:48 -06:00
Kris Johnson
87e6f20664
Implement Monkey's Paw (#11004) 2025-03-31 22:38:53 -06:00
Guangcong Luo
d0e3531e8b Fix burned Explosion damage
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-03-14 22:45:59 -07:00
sunnytangg
dbf5830353
Fix freeze lingering after fainting from Pursuit (#10959) 2025-03-12 19:34:50 -07:00
Guangcong Luo
a5ae0ee42b Sim: Correctly clear maybeLocked
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-03-11 14:13:21 -07:00
André Bastos Dias
f2736e1a3f
Fix Psychic Noise's interaction with Life Dew (#10892)
* Fix Psychic Noise's interaction with Life Dew

* Add FIXME comment

* Remove unreachable code

* Update to ESLint 9
2025-03-09 12:05:02 -06:00
Guangcong Luo
c280cca53b
Fix Gen 1 Wrap (#10936)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-03-08 21:55:22 -08:00
Guangcong Luo
d6e17ebc9e Fix -All Pokemon overriding Min Source Gen
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-03-06 20:16:57 -08:00
Guangcong Luo
c90643efd0 Fix style
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-03-06 17:56:44 -08:00
Guangcong Luo
99ea179aaa Minor optimizations 2025-03-06 16:53:54 -08:00
Guangcong Luo
d9557375a0
Introduce "NatDex Mod" (#10939)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
"Standard NatDex" is very weird compared to how OMs usually work.

See "TierShift Mod" and "Godly Gift Mod". NatDex now gets its own mod,
which can be mixed into any other format, instead of needing to start
with NatDex.

This would make Min Source Gen overriding annoying, so it now defaults
to the current gen in Gen 9+, if Obtainable is set and +Past isn't. So
now you don't need to manually set Min Source Gen to enforce Obtainable
in Gen 9.
2025-03-06 03:40:36 -08:00
André Bastos Dias
c5b8ff7e47
Magician should steal the item if the opponent faints (#10911)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-03-05 23:25:18 -06:00
pyuk-bot
285cf9e2e6
Prevent Toxic Spikes from activating after being absorbed (#10940) 2025-03-05 22:41:56 -06:00
Guangcong Luo
0cb51158aa
Make "All Pokemon" rules more convenient (#10932)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* Make "All Pokemon" rules more convenient

Previously, "+All Pokemon" did nothing except override "-All Pokemon",
which switched from a default-allow to default-deny system.

They still do that, but they now also override all previous pokemon
bans/unbans. This makes it easier to replace a banlist/whitelist
from an inherited ruleset without needing to reverse every previous
ban/unban.

This also adds an error if you use `+All Pokemon` in a ruleset where
it doesn't do anything.

Fixes #10772
2025-03-02 14:47:30 -08:00
Guangcong Luo
557ed5008b Correctly support Node 18 2025-02-26 21:42:14 -08:00
Guangcong Luo
d8a051e364 It turns out Web Crypto isn't in Node 18
I was deceived by `crypto.getRandomValues` working in the repl, but
that's just because the repl has the Node standard library
pre-imported.

Anyway, this new code should work correctly in all of Node 18, newer
Node, and the browser.
2025-02-26 21:33:16 -08:00
Guangcong Luo
c0fcb03f4c Ugh I forgot why we can't update @types/node
(Newer versions don't play well with CommonJS modules. And there isn't
really even anywhere I can comment this to remind me not to do it...)
2025-02-26 20:21:10 -08:00
Guangcong Luo
d4fc262f7f Remove Node crypto dependency from sim 2025-02-26 18:03:08 -08:00