Commit Graph

137 Commits

Author SHA1 Message Date
Ivo Julca
7fd8283600 Introduce requiredItems as an alternative to requiredItem
The list of acceptable items can always be retrieved from `requiredItems`.
2016-11-19 15:44:57 -05:00
Ivo Julca
00ced09ba3 Revert 4aaa3cb 2016-11-19 15:44:56 -05:00
Ivo Julca
4aaa3cb260 Move .templateRequiredItem to array everywhere 2016-11-19 15:23:42 -05:00
Guangcong Luo
fff2df4dcb Fix gen 7 released/unreleased check 2016-11-19 02:26:42 -05:00
Guangcong Luo
81aad5f228 Update Baton Pass Clause 2016-11-19 01:45:43 -05:00
The Immortal
a29a9eeecc Add Alola Pokedex rule 2016-11-19 10:07:19 +04:00
Ivo Julca
5b6705af51 Add support for array .requiredItem 2016-11-18 20:54:16 -05:00
Guangcong Luo
ebcad06ed7 Implement new Zygarde formes 2016-11-18 13:18:21 -05:00
Ivo Julca
6b6de3e98e Hide Silvally's tping on Team Preview 2016-11-18 12:38:40 -05:00
EienSeiryuu
4ba5a902e1 Monotype: Remove outdated Aegislash complex ban (#2888)
Previous code had an Aegislash complex banned from Steel teams hard-coded into Same Type Clause. This hasn't been part of Monotype for half a year and was conflicting with attempts to use "/tour banlist !aegislash" to allow Aegislash in Monotype battles.
2016-11-12 15:44:02 +04:00
Guangcong Luo
893825a881 Properly display Baton Pass Speed Clause 2016-10-24 16:14:46 -05:00
Quinton Lee
55fa6c630e Rulesets: standardize types and names (#2838)
Rules that affect validation are now typed ValidatorRule and rule
names are no longer affected by Tools.getFormat input.
2016-10-12 14:24:53 -05:00
urkerab
1a191a696a Allow the banlist to specify a numeric limit of team properties (#2773) 2016-09-24 12:35:57 -07:00
The Immortal
b21ad1bbc7 Add Blazikenite to Baton Pass clause
Technically it's a method of boosting speed. Some formats that use the Baton Pass clause have it unbanned.
2016-09-16 20:54:45 +04:00
Guangcong Luo
5961872923 Optimize Baton Pass Speed Clause 2016-09-12 16:16:37 -05:00
Guangcong Luo
337d4cb10d Split Baton Pass Clause
Two clauses that have different rules should not have the same name.

We are calling the new clauses "Baton Pass Clause" and "Baton Pass
Speed Clause".
2016-09-09 06:05:59 -04:00
Guangcong Luo
7c309b6153 Refactor Baton Pass Clause 2016-08-19 23:42:55 -04:00
Guangcong Luo
ce9bd5d87c Update Baton Pass Clause
Steel Wing, Metal Claw, and Meteor Mash no longer count as boosting
moves. (This makes them consistent with Silver Wind etc, which also
don't count as boosting moves.)
2016-08-19 23:42:55 -04:00
Marty-D
5958095387 Stopgap fix for new NU Baton Pass Clause 2016-07-13 10:20:18 -04:00
Caleb Young
9bec06d349 Fix Baton Pass Clause error message (#2565) 2016-05-18 20:49:13 -05:00
The Immortal
5db51a7091 Add in-game event data
And flag those as event only. This provides a more accurate database,
and some other flags are no longer needed.
2016-05-10 04:48:14 +04:00
The Immortal
f0101cf864 Remove unused Kalos Pokedex rule 2016-05-09 16:58:13 +04:00
Quinton Lee
641a229672 Check legality of shiny Pokemon obtained in gen 6 (#2526)
Several shiny Pokemon are currently unobtainable in gen 6 games. Affects
formats with the requirePentagon flag
2016-04-19 01:06:48 -07:00
The Immortal
5c693ec13d Add Volcanion to Standard GBU banlist 2016-04-16 01:58:43 +04:00
Ivo Julca
0281176fd1 Remove usage of Array|Object methods implemented by Sugar.js
Adds a dependency to shim Object.values until it's natively available.
2016-03-09 16:55:34 -05:00
Guangcong Luo
9b46d7658c Show item existence in Team Preview 2016-02-16 14:59:33 -05:00
Guangcong Luo
a445b86daf Support hacked genders in Hackmons 2016-02-08 10:25:04 -05:00
The Immortal
62258f4bce Fix perfect IV error message 2016-01-30 16:42:56 +04:00
Guangcong Luo
ddbb1a04ad Fix perfect IV count check
Previous check was requiring Latias-Mega to have 3 perfect IVs because
Latias-Mega is a gen 6 pokemon even though Latias itself isn't.

This also gives clearer error messages in the remaining situations.
2016-01-30 04:20:12 -08:00
The Immortal
c280f19221 G&F: Remove unneeded clause
Forget that `onBegin` existed.
2016-01-01 23:23:13 +04:00
The Immortal
6ec7595785 Add new OMs of the Month 2016-01-01 22:53:36 +04:00
Konrad Borowski
81f602b8d8 Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
The Immortal
3a00f4a83b Change Pikachu-Cosplay to the appropriate forme
If it has a cosplay move.
2015-12-31 03:11:36 +04:00
Guangcong Luo
8aa1409da7 Add Gen 2 only items
PS has a tradition of supporting future-gen items/moves/etc in past gens,
so why not the other way around? Obviously, these items are banned
outside of Custom Game.

This mainly helps make the teambuilder less confusing to gen 2 players.
2015-12-24 03:19:31 -06:00
The Immortal
e35bcbbbc5 Prevent legendaries with less than 3 perfect IVs
Fixes #1342. The one in rulesets is the general check, and the one in
team-validator is the event check. I don’t think we can combine it into
a single check; duplication is needed.
2015-12-13 01:34:37 +04:00
Ivo Julca
e985c2a7c6 Properly iterate moves in OHKO Clause 2015-11-08 22:19:46 -05:00
Ivo Julca
90973d5c0c Style fixes
- Cut down excessive spacing
- Add braces to missing conditionals
2015-11-07 17:08:09 -05:00
Juanma Serrano
c4ac8d6e2f Use strict mode and let and const instead of var
This commit also fixes some duplicated variable declarations.
2015-11-06 21:56:52 -05:00
Ivo Julca
99ac2cad62 Inheritance: work around overly strict Pokémon ruleset using format flags
This change also allows to
- Fix inheritance from Giratina-Origin.
- Remove set cloning for good.
2015-11-02 21:37:10 -05:00
Ivo Julca
40cb48bf9f Improve error message for illegal shinies 2015-10-22 23:01:23 -05:00
Ivo Julca
ddd87205ab AAA: do not autofix ability in Pokemon rule 2015-10-22 22:01:35 -05:00
Ivo Julca
724675b4e5 Fix legality check for shiny megas 2015-10-21 13:55:32 -05:00
Ivo Julca
1a8c51e9a9 Consolidate Pokémon forme validation
- Introduces `battleOnly` to Pokémon formats-data to flag which formes are forbidden on battle start.
- Adds back Secret Sword as Keldeo-Resolute's required move.
- Introduces `requiredAbility` to handle Darmanitan-Zen.
- Introduces `forcedForme` to items' data to flag the formes that some items enforce.
2015-10-20 23:13:32 -05:00
Ivo Julca
7cefd67626 Reject illegal non-shiny sets rather than fixing
Closes #2197
2015-10-20 16:49:09 -05:00
Ivo Julca
488a54b5c2 Formats now declare their team length requirements as teamLength
E.g., to enforce players to bring teams with 4-6 Pokémon to Team Preview,
and make them choose 2 of them there to battle with:

```
teamLength: {
  validate: [4, 6],
  battle: 2
}
```
2015-10-19 15:44:09 -05:00
Guangcong Luo
836eaa2553 Allow Starf Berry in Baton Pass Clause 2015-10-07 02:13:23 -04:00
Konrad Borowski
70665f6f5f Baton Pass Clause now supports Pokemon without a nickname
This fixes problems with showing Pokemon name as "undefined" when
Pokemon lacks a nickname
2015-09-05 10:37:20 +02:00
Ivo Julca
85d92a58f4 Rename validateSet|Team and changeSet: prefix with "on" 2015-08-20 17:24:26 -05:00
The Immortal
7800643e55 Update Monotype bans 2015-08-20 00:57:32 +04:00
Guangcong Luo
ddb8b7f7a3 Minor Endless Battle Clause update 2015-07-22 04:22:32 -04:00