* Add APT Clause
Considers Bind and Clamp: despite them not being legal combinations even in Tradebacks on any Pokemon, there could be a hackmons tier or something that desires this. Future-proofing and in the spirit of the ban.
* Instate APT Clause
https://www.smogon.com/forums/threads/rby-uu-agility-partial-trapping-apt-voting.3703325/post-9249504
* yeah
* yeah lets actually call it that JENKINS
* JENKIIIINS
* Implement new STABmons policy
* Use const
* Use push instead of concat
* Run generation loop for all the code
* Small changes
* Update data/rulesets.ts
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
* fix lint issues
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
"EV Limit = 510" is now its own rule which can be changed separately
from the rest of Obtainable Misc.
The rest of Obtainable Misc doesn't seem useful to break up, so I
haven't bothered.
It turns out rules need to be added before sides are initialized,
so that they can hook `ModifySpecies` during side initialization.
The proper way to fix this is pretty complex so this is just a hack.
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.
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.
`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