Commit Graph

88 Commits

Author SHA1 Message Date
Guangcong Luo
ddb8b7f7a3 Minor Endless Battle Clause update 2015-07-22 04:22:32 -04:00
Guangcong Luo
c8c03ad92d Update Endless Battle Clause
The full description is in the comments of the Endless Battle
Clause entry in rulesets.js.

This update fixes a lot of the issues with yesterday's version.

Also included: A minor refactor of deductPP, which did not need
a success variable.
2015-07-22 03:41:43 -04:00
Guangcong Luo
9bf3517f2e Implement New Endless Battle Clause
The new Endless Battle Clause attempts to ban endless battles by
detecting situations in which a battle could become endless.

This approach bans endless battles without banning Leppacycling.

The exact formulation is:

A Pokémon is considered cornered if:

- it has no available moves other than Struggle
- OR a stale Pokémon used Assist Whirlwind on it
- OR it has been hit by a Struggle from a stale Pokémon on the turn
  it switched in

(at the beginning of a turn, if you have available moves other than
Struggle, you are no longer cornered)

A Pokémon is considered stale if:

- it has gained a Leppa berry through any means besides starting
  with one (including but not limited to Harvest, Recycle, Pickup,
  Symbiosis, Bestow, Thief, Switcheroo, and Magician)
- OR it has been targeted with Fling Leppa Berry
- OR it is cornered and begins a turn with more HP than it the last
  turn it began
- OR it is cornered and begins a turn with as much HP as the last
  turn it began, and was not fully paralyzed, loafing around from
  Truant, or immobilized from Attract
- OR it uses Transform/Imposter against a stale Pokémon

(a Pokémon that becomes stale stays stale for the rest of the match)

If all active Pokémon are stale, the player whose team originally
started with a Leppa Berry loses. If both or neither team started
with a Leppa Berry, the team that had the first stale Pokémon wins.
2015-07-21 06:38:22 -04:00
The Immortal
37a855b450 Ban Smooth Rock from Monotype 2015-07-17 13:21:01 +04:00
Guangcong Luo
aae50cdb43 Ban Leppa+Bestow in Endless Battle Clause 2015-07-16 02:19:24 -04:00
Guangcong Luo
91e52bdca5 Fix Heal Pulse ban to singles only 2015-07-16 02:12:35 -04:00
Guangcong Luo
75d4fc3b21 Update Endless Battle Clause 2015-07-15 19:29:18 -04:00
Guangcong Luo
c43c8cea1f Improve phrasing of teambuilder messages 2015-07-15 19:27:42 -04:00
The Immortal
84cc2bc2c6 Add Hoopa to Standard GBU bans 2015-07-15 02:03:05 +04:00
The Immortal
4b69b3671f Fix Baton Pass clause
Moved Acupressure from `boostSpeed` to `boostNonSpeed.`
2015-07-14 02:07:28 +04:00
Guangcong Luo
e6c0eda54e Fix Baton Pass Clause
It was mistakenly banning all boosting of Speed + non-Speed, not
just with Baton Pass.
2015-07-13 04:43:18 -04:00
Guangcong Luo
caddeb6ac4 Baton Pass Clause update
We now ban boosting both Speed and non-Speed with Baton Pass.
To make this simpler, we introduce changeSet as separate from
validateSet, which allows us to pass setHas to validateSet
2015-07-13 04:18:28 -04:00
Marty-D
afc1fbd141 Show correct species name for Species Clause 2015-07-03 11:33:55 -04:00
Ivo Julca
e3862b22de Add missing effect type for team preview rules 2015-06-18 21:29:00 -05:00
Guangcong Luo
7f2b9ec88f Mega Rayquaza Clause is not a mod
A mod is PS functionality that cannot be replicated in a real
cartridge battle. Preventing someone from pressing the Mega Evolution
button is possible on-cart. It's completely different from changing
the results of pressing a button, which is what Sleep Clause
Mod does.
2015-06-16 19:12:21 -04:00
SolarisFox
29b961ff69 Style fix: indexOf() comparisons 2015-05-18 15:55:57 -07:00
sirDonovan
541c427784 Update Monotype Bans
http://www.smogon.com/forums/threads/monotype-xy-read-post-393-for-tiering-updates.3493087/page-70#post-6162829
2015-04-13 09:28:13 -05:00
Konrad Borowski
8830318a66 Remove complex ban for Kyurem-White in Monotype
Kyurem-White is now completely banned from Monotype. This removes
unused code from Same Type Clause.
2015-04-07 13:12:46 +02:00
The Immortal
e56eea5d15 Forgot to remove the clause 2015-04-02 16:10:24 +04:00
Juanma Serrano
cf1785cb83 Update Final Destination
Proper wording for clause.
Critical hits are removed, they are uncompetitive.
2015-04-01 10:23:26 +02:00
Juanma Serrano
29b13451b6 Implement OM of the Decade
Disregard puny OM of the Month thing. That's for losers anyway.
From now on, the strongest and best OM is going to be added as the OM of the Decaed.
It will only be changed when a strongest OM appears and beats it off.
Right now, with no contender really, that OM is Final Destination. Any other OMs just pale in comparison.
2015-04-01 10:00:11 +02:00
Kevin Lau
e4f3c81e39 Prevent multiple Kyurem-Black and Kyurem-White on AG teams
Anything Goes allows anything that is obtainable in-game, and only one
Kyurem-Black or Kyurem-White can exist on a game cartridge at a time.
2015-03-22 17:12:42 -07:00
Ivo Julca
0bcc4cacb6 Update Monotype bans 2015-02-12 23:07:31 -05:00
The Immortal
b76005ee46 Fix Sleep Clause Mod
In doubles, if a Pokemon asleep was knocked out and in the same turn its
ally was put to sleep, it would not allow it. Can be seen here:
http://replay.pokemonshowdown.com/gen5smogondoubles-209911884 at turn
10.
2015-02-11 04:12:56 +04:00
Ivo Julca
4c069668e6 Add "Cancel Mod" ruleset
- It enables the `supportCancel` battle flag.
- Add it to all formats and standard rulesets.
2015-01-29 21:53:10 -05:00
Juanma Serrano
c556f8badf Fix validation bug on Nickname Clause
Pokémon without nicknames would trigger an error.
This commit fixes be4e41c283
2015-01-28 11:18:04 +01:00
Ivo Julca
be4e41c283 Ban Pokémon sharing nickname under Nickname Clause
Closes #1445
2015-01-27 23:19:26 -05:00
Juanma Serrano
63fc45305e Fix typo 2015-01-16 12:09:59 +01:00
Juanma Serrano
6b672a1b37 Stadium: Exact HP is always shown for both sides 2015-01-14 17:37:45 +01:00
Ivo Julca
2b5e3bab10 Minor style fixes in data files 2015-01-12 00:11:48 -05:00
The Immortal
ae9363ae90 Update check for 3 perfect IVs
"Undiscovered" egg group Pokemon caught in the wild in gen 6 must have
at least 3 perfect IVs.
2014-12-24 23:15:58 +04:00
The Immortal
f25a2dde3d Fix gen 6 legends with less than 3 perfect IVs
Gen 6 legendary Pokemon must have at least 3 perfect IVs.
2014-12-24 22:07:51 +04:00
The Immortal
2049d542ea Add Hoenn Pokedex rule 2014-12-23 15:33:15 +04:00
Ivo Julca
85a47df88a Freeze Clause is a mod 2014-12-19 20:13:02 -05:00
Pikachuun
ca47d43c1f Add -ate Clause
-ate abilities are only limited to 1 per team, total (so no Aerilate +
Pixilate or Double Aerilate).
2014-12-15 12:58:55 -05:00
Ivo Julca
aad4077c0e Implement banlist exception "Allow CAP"
- Checked in Pokemon rule to ignore NonStandard checks for CAP.
- Fixes the issue of CAP's banlist lagging behind OU's after suspect tests.
2014-12-05 12:17:05 -05:00
Joimer
845af33c98 Implement Mega Rayquaza Ban for Ubers
Mega Rayquaza is banned from Ubers.
However, Rayquaza with the move Dragon Ascent is allowed.
It is thus necessary to add a mod rule, Mega Rayquaza Ban Mod,
which flags Rayquaza as not mega evolveable.
2014-11-30 00:00:06 +01:00
The Immortal
bcf19608c9 Update Mega Rayquaza
Rayquaza does not have a mega stone; it can mega evolve with the move
Dragon Ascent.
2014-11-21 16:26:56 +04:00
The Immortal
1a8c22401e Sylveon set is also legal 2014-11-21 01:26:11 +04:00
The Immortal
643a18afe0 ORAS updates
- Released Cosplay Pikachu
- Updated learnsets
- Updated NEXT
- Removed ORAS mod
- Removed hardcoded set bans that are now legal
2014-11-21 01:21:16 +04:00
The Immortal
a8689a5a10 Primal formes can't be used directly 2014-10-18 13:31:03 +04:00
The Immortal
8f8c480931 Prevent unobtainable shiny Pokemon 2014-10-08 01:43:24 +04:00
小太
fe37f3b6a7 Apply jscs to the data files as well 2014-09-30 18:34:16 +10:00
The Immortal
6b5fc8fdff Ban Genesect forms in Monotype 2014-09-18 17:27:54 +04:00
NaniMan
d210533735 Monotype ban
Genesect is banned from Steel teams.
2014-09-14 22:53:26 +10:00
The Immortal
12dbe18fd8 Rename OU Monotype to Monotype
It causes confusion because OU Monotype implies it follows the OU banlist when in fact it allows certain Ubers, and has its own bans of OU Pokemon.
2014-08-31 20:39:00 +04:00
NaniMan
fffa63c6bb Monotype bans updated
Kyurem-White and Shaymin-Sky have been unbanned. However, they are now
type banned under Dragon and Flying respectively.
2014-08-29 13:39:41 +10:00
Ivo Julca
5e47021789 Implement new Monotype bans
Also, validateTeam now gets passed the list of stuff contained in the team as an extra parameter.
2014-08-28 02:00:23 -05:00
Slayer95
1f88c6939f Move EV spread legality check below the "legality line" 2014-08-19 01:10:36 -05:00
Pikachuun
fa620a99d5 Enforce the 510 EV limit
By moving the EV block from team-validator.js to rulesets.js’s Pokemon ruleset, the 510 EV limit is enforced in Balanced Hackmons. The other block regarding abilities is still in team-validator.
2014-08-17 12:49:14 -04:00