Commit Graph

1525 Commits

Author SHA1 Message Date
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
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