Commit Graph

21126 Commits

Author SHA1 Message Date
Mia
ca94dea20f
FS: Fix hotpatching and add more throttling (#7878)
- `writeUpdate` state is now stored in a global variable, so hotpatching doesn't crash it
- throttling now writes on the tail (so two throttled `writeUpdate` calls will write one update, not two)
- room settings, punishments, and helptickets are now throttled
2021-01-09 15:49:30 -08:00
Mia
d5e7f3f778
Modlog: Add more shorthand commands (#7896) 2021-01-09 01:00:05 -08:00
HematiteH2O
111ab3788f
Add Megas For All and Double Trouble (#7893)
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-01-09 00:41:06 -08:00
Distrib
270a55ef0b
Improve /help events (#7895)
Pr for imrove help events, same https://github.com/smogon/pokemon-showdown/pull/7828
2021-01-08 19:18:21 -08:00
urkerab
7bf3c9afd1
Cursed Body ignores Max Moves (#7891) 2021-01-08 16:21:00 -08:00
Marty-D
fcd1dd098d
Update deps to get newest smogon for set-import 2021-01-08 16:42:04 -05:00
May Evans
9d1b7b01bb
Gen 1: Fix Stadium Rest (#7888)
The current implementation of Rest on the Stadium sim fails to recalculate stats when Rest is used. This means that right now, the stat drops from Paralysis and Burn remain when you use it. This is inaccurate, and a massive problem considering Rest's increased relevance in the Stadium metagame.

Here is a video of how the interaction works in Stadium: https://www.youtube.com/watch?v=8o0uVj4bARo
Here is a replay of the bugged interaction on PS Main: https://replay.pokemonshowdown.com/gen1stadiumou-1132924324
Here is a replay of my fixed version of Rest working on the RBY server: https://replay.pokemonshowdown.com/rby-gen1stadiumou-1448

Here is my report on the issue from June of this year: https://www.smogon.com/forums/threads/stadium-format-is-now-available-on-ps.3526616/post-8503350

Thanks to Zarel for pointing out the function we use for recalculating stats here. I'll need this for when I get to (partially) fixing Haze.
2021-01-08 12:49:29 -08:00
PartMan
dac2a8536f
Aliases: Fix typo (#7894) 2021-01-08 11:35:26 -08:00
Marty-D
b7d8802dd6 Correct move data
Fixes #7886
2021-01-08 13:52:48 -05:00
Marty-D
a228f9eded
Gen II-III: Fix Conversion 2 2021-01-08 13:40:48 -05:00
The Immortal
0c898aa209 Max Guard blocks Shadow Force 2021-01-08 15:54:17 +04:00
Kris Johnson
883cb02152
Tournaments: Fix bugs with replacing users (#7890) 2021-01-08 11:26:54 +04:00
The Immortal
0fc3d514e6 Rename U-turn test for consistency 2021-01-08 10:46:41 +04:00
Adam Tran
2c65de1a16
Fix various Future Sight / Doom Desire issues (#7884) 2021-01-07 19:20:30 -05:00
urkerab
2c0bd53966
Grassy Terrain should heal before Leftovers (#7882) 2021-01-07 19:17:48 -05:00
Marty-D
bd6aaaff28
Gen VI-VII: Fix Toxic mechanic 2021-01-07 19:08:36 -05:00
Annika
88da40d046
Roomlog: Support getting total linecount (#7885) 2021-01-07 13:10:23 -08:00
Annika
2a54d9d82e
Chat monitor: Add ƞ to evasion regexes 2021-01-07 12:32:59 -08:00
PartMan
19ca13afbb
Fix capitalization in Charizard-Mega-Y (#7887)
D:
2021-01-07 10:45:29 -08:00
Marty-D
5c6cc7d256
Merge pull request #7879 from urkerab/various-mechanics-fixes
Various mechanics fixes
2021-01-06 15:20:55 -05:00
The Immortal
f2151ad3fd Shared Power: Unban Flare Boost 2021-01-06 23:31:24 +04:00
Guangcong Luo
b5c25a84e2 Fix typo 2021-01-06 11:18:56 -08:00
Guangcong Luo
368e510a28 Add tournaments permission to admins
Fixes #7872
2021-01-06 11:18:56 -08:00
Leonard Craft III
6003cb0835
Fix Intimidate failure text (#7880) 2021-01-06 14:05:12 +04:00
Leonard Craft III
ddbed0dc81
Add Neutralizing Gas switchout message (#7484) 2021-01-06 14:04:06 +04:00
Kris Johnson
7bb99e2abb
Add roomsettings for tournaments (#7876)
* Add roomsettings for tournaments

* gar ehseth et hseh

* aeth srth esg
2021-01-05 14:15:57 -08:00
Distrib
0b2e07dd3e
Add alias for /cleartext (#7850)
* Add alias for /cleartext

Pr for https://www.smogon.com/forums/threads/add-a-short-alias-for-hidetext-hidelines-and-cleartext.3673226/#post-8700023

* Update server/chat-commands/moderation.ts

Co-authored-by: Annika <annika0uwu@gmail.com>

Co-authored-by: Annika <annika0uwu@gmail.com>
2021-01-05 14:12:51 -08:00
The Immortal
9710834676 Update Shared Power bans 2021-01-06 01:38:00 +04:00
Mia
6ca74b025f Chat: Properly sort filters by priority 2021-01-05 14:24:53 -06:00
Plato
c81710bc26
Update translations for repeats and /groups (#7864) 2021-01-05 09:47:20 -08:00
urkerab
cdcdf2da1b Shell Bell should heal from all damage 2021-01-05 17:29:35 +00:00
urkerab
5123b6cc63 Revelation Dance should use Arceus's real type 2021-01-05 16:59:08 +00:00
urkerab
80d652d59b Sturdy should trigger before Focus Sash but after False Swipe 2021-01-05 16:58:03 +00:00
urkerab
4192201d60 Pressure should deduct additional PP from Z-moves and Max moves 2021-01-05 13:17:27 +00:00
urkerab
845b4386c4 Pressure should not deduct additional PP from Sticky Web 2021-01-05 13:14:56 +00:00
urkerab
6ba98478a6 Cursed Body should be able to disable Z-moves 2021-01-05 13:06:40 +00:00
Leonard Craft III
bed1f4ac99
Add various mechanics tests (#7857)
* Improve Volcalith tests readability

* Add G-Max Volcalith recoil damage order test

* Add 1 HP priority tests

* Add charge move targeting test

* Correct assertions of Ripen / Sturdy

* Skip failing tests

* Add Volcalith Black Sludge test

* Add Pressure Max / Z-move tests

* Add Pressure submove test

* Add NGas speed test

* Skip NGas speed test

* Add White Herb double Intimidate test

* Remove debug log

* Remove duplicate Pressure test

* Improve White Herb Intimidate test title

* Add Rollout Storage tests

* Add spread move Rollout storage test

* Add Magician Weakness Policy test

* Add Sleep tests

* Add Shell Bell spread move test

* Add Synchronize Lum Berry test

* oh yeah it doesn't work

* Remove duplicate test

* Add Sunsteel Strike tests

* Add Leech Seed ally switch test

* Add Primal weather Natural Gift test

* Add Emergency Exit hazards test

* Add generic hazards tests

* Add and standardize Arceus tests

* Add Transform ability test

* Add and standardize Parting Shot tests

* Add Memento tests

* Add Me First test

* Add Cursed Body Z-move test

* Add Assurance targeting test

* Clarify Assurance test description

* Add double faint switch test

* Add Receiver KO boost ability

* Add double Unnerve test

* Add Dynamax Eject Pack test

* Improve Dynamax forced switchout test

* Add Protective Pads Perish Body test

* Add Sticky Web Pressure test

* Add Speed modifier lower bound test

* Add Cloud Nine Hydration test

* Correct Cursed Body test

* Add Grassy Terrain Leftovers test

* Remove leftover debug

* Add additional Receiver and Soul-Heart tests

* Add Spite tests

* mish

* Add Shell Bell multihit test

* Add WP Dragon Tail test

Co-authored-by: The Immortal <the_immortal123@live.com>
2021-01-04 23:47:10 -08:00
The Immortal
00d2711af5 Update Shared Power bans 2021-01-04 23:50:05 +04:00
Mia
40cc33fcfd
Chat: Add support for private pages (#7877) 2021-01-04 10:15:42 -08:00
The Immortal
a3ce567ae1 Gen 6/7: Random Battle fixes 2021-01-04 20:59:47 +04:00
The Immortal
fa2698a3a0 Fix PP reduction moves 2021-01-04 16:27:09 +04:00
Guangcong Luo
73c7d5e5d8 Fix bug in Sketch validation
Earlier today, I tried to remove the hardcode for Smeargle without
realizing what it was for (Smeargle gets Spore as an event move, which
shouldn't override its ability to Sketch Spore).

It turns out, 7 years ago when I added the Smeargle hardcode, I wrote
a TODO to fix it which I never got around to:

2e1ab04eb6

Anyway, this commit fixes it properly.
2021-01-03 23:52:33 -08:00
Guangcong Luo
6b3a3070c9 Refactor team validator for readability
`checkLearnset` has been renamed `checkCanLearn`.

`reconcileLearnset` has been replaced with `validateMoves`, which
bundles the actual `checkCanLearn` calls with the old
`reconcileLearnset`, making for a better name.
2021-01-03 23:26:20 -08:00
Marty-D
139179f872
Descriptions: Fix Explosion/Self-Destruct shorties 2021-01-03 20:30:32 -05:00
The Immortal
4ba7045bda Validator: Remove extra space from cantLearnReason 2021-01-04 00:58:04 +04:00
zgeorgecsat
6c5a74c949
Mafia: Refactor for errorReply/requireGame (#7862)
* Changed to errorReply and requireGame whenever applicable/

* Use Chat.ErrorMessage in canJoin
2021-01-03 11:44:43 -08:00
PartMan
6597ef0f15
Add multi-hit as a parameter to /ms (#7855)
* Add multi-hit as a parameter to /ms

* Revert /help ds, add multihit to /help ms, fix TS

Code linted, let's go
'Tis coding at midnight
Save what had been tossed...
Bring back the older line...
The older line.

* ;-;

  1465 passing (25s)
  53 pending


> pokemon-showdown@0.11.4 posttest /home/partman/Documents/Code/pokemon-showdown
> npm run tsc


> pokemon-showdown@0.11.4 tsc /home/partman/Documents/Code/pokemon-showdown
> tsc


No idea why this wasn't caught.

* Fingers crossed
2021-01-03 11:42:27 -08:00
Marty-D
ca4fcabc39 Gens 5-6 OU: Put consistently low usage Pokemon in OU by technicality
https://www.smogon.com/forums/posts/8703468/
2021-01-03 13:41:06 -05:00
Guangcong Luo
91c134fcf3 Remove unused variable 2021-01-03 10:19:54 -08:00
Guangcong Luo
ad656f67e4 Keep track of why moves can't be learned
The validator will now always know and be able to report exactly why
a move can't be learned, instead of sometimes not being able to figure
it out.
2021-01-03 09:53:04 -08:00