Commit Graph

1556 Commits

Author SHA1 Message Date
Kris Johnson
fcddb7fe21 Legends Z-A: Fix Greninja validation 2025-10-20 23:46:01 -06:00
André Bastos Dias
f69ebf7fed
Add Legends: Z-A Learnsets (#11508)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* Add Legends Z-A mod

* Fix lint

* Use double quotes for isNonstandard

* Add 9L0 moves

* Add legendary encounters

* Add Unobtainable

* Inherit legendary learnsets

* Fix Floette-Mega id

* Use strangeball for gen8legends events

* Simplify isPrimal

* Create tests

* Edit comment

* Release Greninja-Mega

* Add Mega Floette and Mega Zygarde aliases

* Fix gen9legends learnset indentation

* Add pokedex changes

* Fix lint

* Fix test

* Revert changes

* Update formats-data.ts

* Fix tests

* Add updated stats for Mega Mawile and Mega Medicham

* Inherit Mega Starmie stats

* Remove Kleavor from Scyther evolutions

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-10-20 15:49:26 -06:00
Karthik Bandagonda
d0d1eab7b7
Gens 3-4: Fix Knock Off + Recycle Interaction (#11510)
* Gens 3-4: Fix Knock Off + Recycle Interaction

* forgot to actually remove the item
2025-10-17 16:34:51 -06:00
Kris Johnson
f159beb578 fix things 2025-10-15 20:14:30 -06:00
Kris Johnson
051a404478 Add Legends: Z-A Pokemon and items 2025-10-15 16:46:14 -06:00
Karthik99999
dc48d8234e Gens 3-4: Fix Knock Off state being reset on switch out
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-10-14 18:12:25 -07:00
André Bastos Dias
5ead2874eb
Reset ability and item state on switch in (#11488) 2025-10-06 18:19:07 -07:00
Karthik Bandagonda
4425ec2719
Add onChooseTeam event for formats (#11476)
* Add onChooseTeam event for formats

* Fix VGC 2010 autochoose

* Use custom validation instead of Limit One Restricted

* cleaner code

* clean up chooseTeam code
2025-10-06 02:20:44 -06:00
Kris Johnson
f52bc482bb
Add Terastal Crescendo online competition (#11471)
* Add Terastal Crescendo online competition

* Fix build
2025-10-01 21:13:50 -06:00
Yoshiblaze
fbe978a9c9
Add October PMotM: Blank Canvas Random Battle (#11463)
* Blank Canvas Rands: Initial Commit

* Add in all Item hardcodes

* a couple more set adjustments

* Update data/mods/blankcanvas/rulesets.ts

* Apply suggestions from code review

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-10-01 12:41:03 -06:00
André Bastos Dias
7ad9c45191
Fix gender validation (#11449)
https://www.smogon.com/forums/threads/bug-report-validator.3771139/
2025-09-25 13:28:06 -06:00
André Bastos Dias
7eca4741ab
Fix Tera Stellar not applying <60 bp boost on first use (#11455)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-09-21 20:47:21 -07:00
Kris Johnson
ae6d677edc
Refactor color support for cosmetic formes (#11442)
* Refactor color support for cosmetic formes

* Oops

* Oop2s

* Fix build

* Fix build ?
2025-09-15 12:15:22 -06:00
Kris Johnson
02b461c848
Fix crash 2025-09-13 15:35:47 -06:00
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