Commit Graph

18 Commits

Author SHA1 Message Date
Slayer95
c49644c295
Deprecate "Custom" group bans (#11242)
* Doc: Remove Staff Bros moves mention in "Custom" group bans

Fixes #6819

* Deprecate "Custom" group ban
2025-07-05 01:46:07 -06:00
Guangcong Luo
0cb51158aa
Make "All Pokemon" rules more convenient (#10932)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* Make "All Pokemon" rules more convenient

Previously, "+All Pokemon" did nothing except override "-All Pokemon",
which switched from a default-allow to default-deny system.

They still do that, but they now also override all previous pokemon
bans/unbans. This makes it easier to replace a banlist/whitelist
from an inherited ruleset without needing to reverse every previous
ban/unban.

This also adds an error if you use `+All Pokemon` in a ruleset where
it doesn't do anything.

Fixes #10772
2025-03-02 14:47:30 -08:00
AnnikaCodes
999346fe44
CUSTOM-RULES.md: Update for TypeScript 2023-07-31 19:12:25 -07:00
DoctorTeuz
bc95584527
Add Galar Pokedex rule to CUSTOM-RULES.md (#8347) 2021-10-25 10:32:04 -07:00
Guangcong Luo
2936c55439 Rules: Add -no item and fix -all items
`no item` is now a fake item meaning "not holding an item", for the
purposes of the team validator. This means that `-no item` will force
all pokemon to carry items.

`all items` no longer includes not holding an item, so `-all items`
will now work as expected.
2021-05-17 04:22:24 -07:00
Guangcong Luo
638c1e3ae8 Add "Max Move Count" value rule
Also stop enforcing 4 moves limit and 6 pokemon limit in `-Nonstandard`,
for the same reason we stopped enforcing the level 100 limit; any format
that explicitly wants it higher should automatically override it.
2021-05-07 02:16:24 -07:00
Guangcong Luo
0adb8d1b00 Add Unova Dex rules 2021-05-07 00:37:22 -07:00
Guangcong Luo
b16ea90d79 Document "Limit One/Two Restricted" rules 2021-05-06 22:01:56 -07:00
Mia
34d6480837 Re-add Cancel Mod to Flat Rules 2021-05-06 09:28:56 -05: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
urkerab
5113cefa39
Document restriction rules (#7827)
* Document restriction rules

* Restriction rule examples
2020-12-29 08:31:20 -08:00
Guangcong Luo
152161e99a
Clarify forme banning 2020-03-22 19:59:01 -07:00
Alexander B
0d06b22114
Fix in-battle rules list (#6479) 2020-03-22 05:45:04 +04:00
Kris Johnson
ff0968bdc9
Scalemons: Move stat formula to rulesets (#6481) 2020-03-22 05:44:47 +04:00
Kris Johnson
01769c1ca7
Update Custom Rules documentation and implementation (#6477) 2020-03-22 04:11:17 +04:00
Guangcong Luo
80fd2903bf Improve Custom Rules documentation
- Document `/chall USER, FORMAT @@ RULES`

- Document complex bans

- Document multiple rules, in case it wasn't obvious from the rest of
  the page
2020-03-21 00:17:23 -07:00
ACakeWearingAHat
63eb9d5dc4 Complete the custom rules documentation (#6238) 2019-12-31 19:12:57 +09:00
Guangcong Luo
b31b88a79b Add documentation for custom rules 2019-12-25 11:26:23 +09:00