Commit Graph

3933 Commits

Author SHA1 Message Date
iforgetwhyimhere
82f476388b
CCAPM2025: Rebalance Session 1 (#11978)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
* Convert CCAPM to an unbanlist

* CCAPM: Balance Session 1

* CCAPM: Report winrates

* ccapm2025randombattle: Add alias "CCAPM"

* CCAPM: Gaslight

* removed the wrong staka set

* lint

* lint 2 electric boogaloo

* Update data/mods/ccapm2025/items.ts

* Update data/mods/ccapm2025/abilities.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2026-04-25 14:19:56 -06:00
Aurastic
c1950e3256
UNO: Fix autodq crash during wild color selection (#11942)
* UNO: Fix autodq crash during wild color selection

* improve error message

Co-authored-by: Slayer95 <ivojulca@hotmail.com>

* Update server/chat-plugins/uno.ts

---------

Co-authored-by: Slayer95 <ivojulca@hotmail.com>
2026-04-14 13:16:25 -06:00
Kris Johnson
b555f4d8ce
Implement Champions (#11910)
* Make a mod file

* Add Pokemon in Champions (#3)

* Add new Megas abilities (#4)

* Add new Megas abilities

* Apply suggestion from @KrisXV

---------

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

* Add conditions for Champions (#5)

* Add conditions for Champions

* Add a turn limit to freeze

* Swap the order of the checks

Co-authored-by: André Bastos Dias <80102738+andrebastosdias@users.noreply.github.com>

---------

Co-authored-by: André Bastos Dias <80102738+andrebastosdias@users.noreply.github.com>

* Disable Fake Out if it is not the first active move action (#7)

* Disable Fake Out if it is not the first active move action

* Remove unnecessary code

---------

Co-authored-by: André Bastos Dias <dias.andre@siemens.com>

* Implement Piercing Drill, Spicy Spray and Unseen Fist (#2)

* Add Piercing Drill and Spicy Spray

Fix ability numbers

Refactor condition

Disallow Piercing Drill/Spicy Spray in formats !Obtainable Abilities without +Future

Refactor condition

* Rename blockStatus

* CFZ-moves completely bypass Protect

* Update Gen 4 Protect

* Old gen Wide Guard and Quick Guard

* Fix Wide Guard

* Clean Mat Block implementation

* Nerf Unseen Fist

* Fix condition

* Update sim/battle.ts

---------

Co-authored-by: André Bastos Dias <dias.andre@siemens.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* Implement PP mechanics (#8)

* Implement PP mechanics

* Clip all moves to 20 PP

* Apply suggestion from @KrisXV

* Update scripts.ts

---------

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

* Add Champions stat calculaiton

* Fix conflicts with smogon/master (#11)

* Fix stat formula (#12)

* Implement PP mechanics (#8)

* Implement PP mechanics

* Clip all moves to 20 PP

* Apply suggestion from @KrisXV

* Update scripts.ts

---------

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

* Fix stat formula

* For clarity like we do with friendship in letsgo

* If we don't allow IVs and Level to be modifiable, there is not point in having `Adjust Level = 50`

---------

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

* Add Champions Items (#9)

* Remove Mega Raichus, Mega Z, and Greninja-Bond (#10)

* Remove Mega Raichus and Mega Z

* Remove Greninja-Bond

* Implement Mega Sol's activation message (#13)

* Implement Mega Sol's activation message

* Update ModdedBattlePokemon interface

* Implement move changes (#6)

* Implement move changes

* Re-implement Salt Cure changes

* Update moves

* Implement Blood Moon package

* Mimic https://github.com/smogon/pokemon-showdown/pull/11838/

https://github.com/smogon/pokemon-showdown/pull/11838/

* Implement accuracy and PP changes

* Mark Double Shock and Revival Blessing as Past moves

* Import learnsets from Serebii (#19)

* Import learnsets from serebii

* floette -> floetteeternal

* Update learnsets

* Apparently I forgot to give Gourgeist-Small its tier (#15)

* Move Pikachu to NFE (#21)

* Oops

* Add Pokemon I forgot the first time (#24)

* Add 'Past' moves (#23)

* Add past moves

* Fix move availability

* AfterHit effects should activate even if the source faints (#20)

* AfterHit effects should activate even if the source faints

* Change Gens 3-4 event order

* Ups

* Announce 4x and 0.25x effectiveness (#14)

* Reset Encore priority and choose random target (#17)

* Reset Encore priority and choose random target

* Allow onOverrideAction

* Quash + Encore interaction

* Don't send target

targetLoc was actually thing being checked but wtv

* Activate White Herb after choosing the Parting Shot switch (#26)

* Activate White Herb after choosing the Parting Shot switch

* Add comment

* Add formats

* Implement flag changes (#25)

* Implement flag changes

* Fix Gen 5 Rage Powder (remove poder immunity check)

* Add moves and abilities descriptions

* Apply suggestion from @KrisXV

* Comment Rage Powder

Leave this comment and I would choose the implementation depending on what we see from the healing flag.

---------

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

* Announce status immunities from abilities (#22)

* Mega Sol boosts the damage of Fire-type moves as if they were under sun (#18)

* Remove hardcoded Utility Umbrella

* Check effective weather on attacker

* Don't activate Mega Sol under sun

* Add TODO comment

* TODO: check interaction with Utility Umbrella

* Move implementation to base mod

* Do not revert Mega Evolutions upon fainting (#16)

* Revert Mega Evolutions on fainting

* Allow diferent levels in the team builder

* TODO: confirm interaction with Revival Blessing

* Add Species Clause and Obtainable

* Update team-validator.ts

---------

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

* Update abilities percentages (#27)

* Healer has a 50% chance of curing the status conditions of its allies

* Update Shed Skin

---------

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

* Fix crashes

* add custom game

* Fix typo

* update flat rules

* Update data/mods/champions/scripts.ts

Co-authored-by: Slayer95 <ivojulca@hotmail.com>

---------

Co-authored-by: shrianshChari <30420527+shrianshChari@users.noreply.github.com>
Co-authored-by: André Bastos Dias <80102738+andrebastosdias@users.noreply.github.com>
Co-authored-by: André Bastos Dias <dias.andre@siemens.com>
Co-authored-by: Karthik Bandagonda <32044378+Karthik99999@users.noreply.github.com>
Co-authored-by: Slayer95 <ivojulca@hotmail.com>
2026-04-10 20:29:01 -06:00
Guangcong Luo
94639756a6
Refactor editbattle not to use eval (#11898)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
With this, editbattle no longer relies on `>eval`, but gets its own
inputlog protocol.
2026-04-07 13:58:01 -07:00
Mia
1e2048e2a4 Github: Up cooldown on PR displays to one hour 2026-04-06 13:50:18 -05:00
Marty-D
32a2a39741
Avatars: Update artist credit 2026-04-01 21:48:44 -04:00
André Bastos Dias
ae608f5fcf
Fix Order Up's interaction with Sheer Force (#10891)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2026-03-27 17:40:55 -05:00
Aurastic
79483f6616
Explicitly set type="submit" on form buttons (#11726)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2026-03-17 00:17:03 -07:00
Slayer95
1832b39b7b
Allow highlighting on broadcast !faq,rfaq,daily,avatars (#11818)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2026-03-16 22:03:01 -07:00
Mia
2b55cb90fc Rooms: Ensure minor activity queue is restored on startup
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2026-03-16 15:24:56 -05:00
Mia
f01268f26c Moderation: Fix /offlineforcerename modlogging
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2026-03-16 01:12:02 -05:00
Marty-D
b809f86f09
Add new avatars
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2026-03-08 19:52:29 -04:00
MathyFurret
50ad403c5c Help tickets: Escape HTML in lock reason 2026-03-03 11:51:46 -06:00
Mia
8a0685b03f Ladder tours: Cap deadline length 2026-03-01 01:11:09 -06:00
iforgetwhyimhere
c55e84f7cb
Add randffats command help (#11759)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2026-02-11 17:22:56 -05:00
Aurastic
0fd2b67850
Automodchat: Prevent idle or busy staff from being treated as online (#11727)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2026-02-04 00:26:23 -06:00
Lucas
e847960a1b
Add different dexes to /reevo (#11731)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
Co-authored-by: Meijer,L. (Lucas) <l.meijer6@students.uu.nl>
2026-02-01 16:32:18 -07:00
TurboRx
2b02955fdc
Make /rank command output horizontally scrollable (#11586) 2026-01-25 08:33:29 -05:00
Slayer95
b0dc94f196
Further update tests after startup refactor (#11521)
- Adds config.lazysockets to prevent listening to the network
- Fixes modlog tests
2026-01-25 07:58:21 -05:00
André Bastos Dias
ea822f8863
Auctions: Show managers of top bidder in bid info box (#11702) 2026-01-13 11:02:16 -07:00
Guangcong Luo
9fd696977c Fix crash in formatText 2026-01-10 14:36:51 -08:00
Guangcong Luo
f2883557ca Protect against infinite loop 2026-01-10 21:31:12 +00:00
André Bastos Dias
684150d9d7
Implement Mega Stones as {key: value} pairs (#11684)
* Implement Mega Stones as pairs {key: value}

* Fix Mega Evolution check

* Add constructor guards to Dex getters

* Update config/formats.ts

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2026-01-08 14:59:22 -07:00
Aurastic
35e871e1d1
Thing of the day: Add destroy handler (#11694) 2026-01-08 14:21:17 -07:00
André Bastos Dias
7a3f4dbbe2
Update Official Formats to Regulation I (#11686) 2026-01-05 20:40:27 -06:00
Kris Johnson
c671f43d50 Add a /1v1factory command 2026-01-05 16:24:32 -07:00
Caznovia
6a2b1ad82e
Update /intro command links (#11654) 2026-01-01 02:29:12 -07:00
Aurastic
7d2de8779e
Thing of the Day: Add auto-start support (#11633)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-12-19 22:39:55 -06:00
Kris Johnson
2c58b396cb Mix and Mega: Release Z-A stones
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-12-15 19:53:21 -07:00
Mia
5a02f59339 Usersearch: Exempt guests from term matches on overview page
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-12-14 23:21:19 -06:00
Mia
39c43fc8b1 Artemis: Ignore ETIMEDOUT errors
Not on our end. Not much we can do.
2025-12-13 13:11:39 -06:00
Kris Johnson
27ecc9e7d1 Legends Z-A: Update legality 2025-12-12 12:48:24 -07:00
Pac n cheese
236833b92f
Update staff list command (#11585)
The current page led to nowhere so I updated it to point to https://www.smogon.com/forums/posts/10715136/ instead.
2025-12-12 09:29:08 -06:00
Kris Johnson
9df07a958d Z-A OU: Ban Shed Tail 2025-12-12 00:59:18 -07:00
Kris Johnson
30ff784f2c
Z-A: Add DLC Pokemon (#11613)
* Z-A: Add DLC Pokemon

* za ou learnsets

* zaou changes

* skip test 4 now

* dfadasas
2025-12-12 00:04:05 -07:00
Sergio Garcia
13aa6355af
Fix various typos (#11607) 2025-12-08 18:38:02 -06:00
Mia
972f89fa28 Replays: Fix crash in uploading replays with un-rounded ratings
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-11-23 20:06:44 -06:00
HoeenHero
ad3b40f1c9 Specify room identity with info commands to properly fix ignoring spectators/opponent
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-11-06 15:34:27 -05:00
Mia
874aa6f73c Fix link extraction in smogtours art credit field
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
GOD. FUCK. FUCK THIS. WOW. CANNOT BELIEVE IO SUFFERED THROUGH DEBUGGING THIS FOR HOURS _THE FIRST TIME_ AND MANAGED TO FORGET IT EVEN THOUGH THE METHOD I HAD TO FIX IT WITH IS _FOURTEEN LINES ABOVE_. FUCK.
2025-10-28 13:42:30 -05:00
TurboRx
8fb533e4b9
Config: Arrays are not valid for Config.subprocesses (#11532)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-10-25 23:04:35 -07:00
Alex "Mathy
bc044e3037
IPTools: Fix CIDR ranges at 128.* and up (#11466)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-10-25 18:26:44 -04:00
Guangcong Luo
0c69a1f7e3 Fix crash on startup with serialized bestof games
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
The parent bestof game doesn't get serialized, but their subgames do,
which crashes PS when they get deserialized. Setting the correct flag
prevents that crash.
2025-10-20 02:29:35 -07:00
Mia
debd7bebc3 Fix crash on startup
Chat being loaded after roomlogs causes a crash in room initialization.
2025-10-19 23:26:20 -05:00
Marty-D
5bef393f6f
Add new avatars
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-10-19 20:29:24 -04:00
Slayer95
4b8c6a4d6d
Refactor startup (#11346)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
This minimizes side effects of import/require across the codebase,
and lets the caller be responsible of initializing child processeses,
as well as other async logic, such as restoring saved battles.
2025-10-17 19:37:47 -07:00
Aurastic
b7c444cee5
make plza default (#11511) 2025-10-17 13:07:19 -06:00
Lusamine
8a75295b1b
Wi-Fi: Change Z-A GA background for readability (#11512) 2025-10-17 13:07:01 -06:00
Aurastic
558a799c81
Wi-Fi: Add support for PLZA (#11505)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-10-15 20:35:51 -06:00
Mia
f1adacf0ee Chat: Ensure CommandContext#pmTransform properly handles /raw messages
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-10-12 11:59:48 -05:00
Mia
805b17ba3e Ensure /dt works in PMs 2025-10-12 11:51:12 -05:00