Commit Graph

21991 Commits

Author SHA1 Message Date
Annika
00a533f4fe Random Battles: Fix minSourceGen bug 2021-05-06 23:05:37 -07:00
Annika
2b3741ec2f Random Battles: Support more Value Rules
Specifically, randomized formats will now support Max Team Size, Min Source Gen, Adjust Level, Adjust Level Down, and Force Monotype.

This fixes the issue with randomly-generated Multi Battle teams containing six Pokémon, instead of three as desired.
2021-05-06 22:45:08 -07:00
Kris Johnson
eb103b1473
Inverse: Fix bans (again) 2021-05-06 23:28:33 -06:00
Guangcong Luo
b16ea90d79 Document "Limit One/Two Restricted" rules 2021-05-06 22:01:56 -07:00
Guangcong Luo
df42a795f9 Remove max level check from -Nonexistent
Anyone who sets a max level above 100 is opting in, so there's no
need to add a redundant check on top of that.
2021-05-06 21:19:04 -07:00
Karthik
367b4e7c2d
Implement Zacian/Zamazenta/Xerneas forme leak (#8261) 2021-05-06 19:24:59 -07:00
Guangcong Luo
36295dc27a
Simplify Team Preview events (#8274)
In format events:

`onFieldTeamPreview` has been renamed back to `onTeamPreview`. It's now
a custom event (like `onBegin`), rather than a field event.

Team Preview data has been entirely moved from `onBegin` into
`onTeamPreview`.

`onFieldStart` for formats/rules now happens after Team Preview, rather
than before. Use `onBegin` for things that happen before Team Preview.
2021-05-06 18:53:58 -07:00
Mia
f949f9ba66 Chat-monitor: Use new spoiler format instead of SPOILER:
Mentioned in Staff, slightly cleaner.
2021-05-06 13:21:54 -05:00
Annika
2837f9dc26 Handle undefined reason in monitorRoomPunishments 2021-05-06 10:17:36 -07:00
Mia
34d6480837 Re-add Cancel Mod to Flat Rules 2021-05-06 09:28:56 -05:00
Mia
0d87bbd91e Formats: Re-add Cancel Mod to cart formats missing it
List of formats from DaWoblefet.
2021-05-06 08:48:40 -05:00
Guangcong Luo
16e9a0eeec Fix bugs in value rule refactor 2021-05-06 07:49:17 -04:00
Guangcong Luo
11a6902154 Force rebuild when using /rebuild 2021-05-06 01:36:34 -07:00
Guangcong Luo
55980d416c
Support value rules (#8267)
`teamLength`, `maxLevel`, `cupLevelLimit`, and `minSourceGen` no longer
exist as properties of `Format`. Instead, they're value rules that
become properties of `RuleTable`, and can be specified as custom rules
and inherited through rulesets like anything else.

See the PR for a full reckoning of changes:

https://github.com/smogon/pokemon-showdown/pull/8267
2021-05-06 01:16:16 -07:00
Guangcong Luo
1bf172fe7e Refactor: Move getTagRules inside RuleTable 2021-05-06 00:30:07 -07:00
Kris Johnson
dae4dd374e
Inverse: Fix bans 2021-05-05 16:55:12 -06:00
Mia
64b3b554c2 Usersearch: Add namelock buttons
Requested by staff, approved by Ransei.
2021-05-05 16:24:01 -05:00
Mia
a5d3aaee35 Helptickets: Don't display language if set to English in /ht list 2021-05-05 14:27:09 -05:00
Karthik
b6d5fff24b
Unfix interaction between Gluttony and Neutralizing Gas ending (#8273)
Reverts #8250, but will keep gluttony test file and add more tests to it. This is being done because indirect sources of damages are not causing gluttony to trigger (such as belly drum).
2021-05-05 13:44:59 -04:00
Mia
5fb8071274 Info: Fix /regtime time handling 2021-05-05 12:04:25 -05:00
Tristan Pink
53dc706b7b
Fix typos/grammar in CONTRIBUTING.MD (#8272) 2021-05-05 02:37:56 -07:00
Guangcong Luo
574bb28bbe
Implement Utils.Multiset (#8260)
If you grep the codebase for `|| 0) + 1` you get a lot of results,
all of which would be better implemented with a multiset.
2021-05-04 21:53:23 -07:00
Kris Johnson
70a06de929
PunishmentMonitor: Fix "(banned: )" in autolocks (#8256) 2021-05-04 21:50:04 -07:00
Annika
96574af8aa Random Battles: Add unit tests for PR #8270 2021-05-04 21:43:40 -07:00
ACakeWearingAHat
42cf635dca
Random Battles Updates (#8270) 2021-05-04 21:42:49 -07:00
Annika
a150b4aa6c Fix help for /host 2021-05-05 00:18:23 -04:00
Instruct
71c44a9f78
Fix build (#8271) 2021-05-04 21:07:16 -07:00
Kris Johnson
f64b2b00ae
BW2 1v1: Update bans
https://www.smogon.com/forums/threads/1v1-old-gens.3646875/page-11#post-8844739
2021-05-04 21:30:09 -06:00
Kris Johnson
845da77a9f
Balanced Hackmons: Ban Cramorant-Gorging
https://www.smogon.com/forums/threads/balanced-hackmons.3656408/page-32#post-8844771
2021-05-04 21:27:55 -06:00
Mudkipman12
82006cf308
Ban Mega Latios and Thundurus-T in NatDex UU (#8269)
* Ban Mega Latios in NatDex UU

https://www.smogon.com/forums/threads/bug-reports-v4-read-original-post-before-posting.3663703/post-8845100
Fix to the current NatDex UU banlist.

* Update tags.ts

* Also Ban Thundurus-T

Turns out its also legal and isnt supposed to be
2021-05-04 21:11:16 -06:00
Mia
5f21bc1d9d Helptickets: Update language display in /ht list
Staff preferred this, from opinions given when it went live.
2021-05-04 20:54:58 -05:00
Leonard Craft III
771c60d4b9
Improve self-hit confusion damage (#8264) 2021-05-04 13:44:13 -04:00
Guangcong Luo
edb45ebecc Refactor rule iteration 2021-05-04 04:50:58 -07:00
Guangcong Luo
c11dccb032
Rename and fix maxTeamSize (#8266)
`maxTeamSize` is a bad variable name (not that `teamLength.battle` is
any better, but that'll get fixed in a future refactor).

- Rename `maxTeamSize` to `chosenTeamSize`, to better indicate that
  this is the size after Team Preview, and that it is also the minimum
  size after Team Preview.

- Don't limit team sizes to 6 if `teamLength.battle` isn't specified.
  This removes an unnecessary `teamLength.battle` requirement in all
  Custom Game formats.

- Stop requiring `maxTeamSize` as a parameter for `battle.getRequests`.
  It's not even used except as a hint to the Preact client, and was
  never state in the first place.

- Stop supporting partial `side.chooseTeam`. This is an unused feature
  and removing it massively simplifies the code and fixes a bug in
  `cupLevelLimit` which definitely was not written with the
  understanding that `chooseTeam` could be partial.

- Fix a bug in #7929 which seemed to misunderstand what `teamsize` was
  for.
2021-05-04 00:31:05 -07:00
Kris Johnson
6ee011b0e5
Sketchmons: Update bans
again :|
2021-05-03 21:28:45 -06:00
Distrib
cc2fb4a596
Add No Switch rule (#8241) 2021-05-03 16:09:09 -07:00
Annika
d48c7a9ed6 Random Battles: Fix STAB enforcement 2021-05-03 15:16:57 -07:00
Kris Johnson
26af3f3e2c
DPP OU: Update Viability Rankings link 2021-05-03 12:41:58 -06:00
Kris Johnson
b840cc663b
AAA: Add resources link 2021-05-03 12:41:03 -06:00
Annika
2df7307ca2 Helptickets: Display language in ticket list 2021-05-03 10:35:37 -07:00
Kris Johnson
da1cb53002 1v1: Update bans 2021-05-03 11:21:43 -06:00
Mia
abcf367181 Admin: Respawn Dexsearch processes in formats hotpatch 2021-05-03 11:41:49 -05:00
Instruct
7f5bebe75c
Sketchmons and Inverse: Update banlists (#8263)
* Inverse: Update Banlist

* [23:08] in the hills: sorry to bother but can u also add cinderace to the Sketchmons banlist, it was missed in the last update

* Update formats.ts

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-05-03 10:39:53 -06:00
Marty-D
916c80b23d
Fix Mold Breaker interaction with Aura Break and Dark/Fairy Aura 2021-05-03 12:34:06 -04:00
Mia
a20f2ebdf2 Helptickets: Add the alias /ht tb to /ht ban
Requested by a few staff
2021-05-03 10:45:46 -05:00
Karthik
f453d37817
Fix interaction between Gluttony and Neutralizing Gas ending (#8250) 2021-05-03 11:25:47 -04:00
pyuk-bot
37df679e73
FFA: Update Court Change mechanics (#8259) 2021-05-03 11:23:03 -04:00
pacmanboss256
bb2d700883
Fix smart targeting with scripted moves (#8248) 2021-05-03 11:20:19 -04:00
Marty-D
a40f3388b6
Stop Ripen from reducing damage forever 2021-05-03 11:17:37 -04:00
Annika
f6b21b90ce Trivia: Support games with fewer than 3 players
Requested by Trivia roomstaff
2021-05-02 21:36:22 -07:00