Commit Graph

3222 Commits

Author SHA1 Message Date
Guangcong Luo
5d3cd8263c More updates to Endless Battle Clause
- Gen 1 PP overflow makes a Pokemon stale
- Staleness warnings now specify the staleness source
- Half-staleness also warns, if another pokemon is already stale

Warning on half-staleness helps remind people who seem to think
they've beaten Endless Battle Clause after 5-ish turns, when it
takes 10-20 turns for some staleness verdics, especially if
there's a lot of switching going on.
2015-07-24 03:33:28 -04:00
The Immortal
2e6ffd3d4c Ban Pidgeotite from UU 2015-07-23 22:47:22 +04:00
Marty-D
21a7fcc8bc Fix Parental Bond interaction with two-turn moves 2015-07-22 22:04:06 -04:00
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
1199108fc0 Fix Spite message 2015-07-22 03:38:49 -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
e92714a2ed Random Battle: Prevent Outrage with Draco Meteor
if they are the Pokemon’s only two damaging moves.
2015-07-21 02:16:53 +04:00
The Immortal
aa0525f724 Fix Intimidate activation message 2015-07-21 00:06:08 +04:00
Ivo Julca
40c4c91af6 Fix future move gem boost message 2015-07-19 12:21:14 -05:00
Guangcong Luo
0bc8f9c50f Merge pull request #2059 from Slayer95/formatshelp
Finish implementation of /formatshelp
2015-07-18 13:16:32 -05:00
The Immortal
8fb1ffc716 Release Hyperspace moves 2015-07-18 14:28:01 +04:00
The Immortal
4b1f7a42f0 Add new event Pokemon
And free Hoopa!
2015-07-18 14:15:25 +04:00
Marty-D
d7ead997a5 Fix Ditto Transformed into Ditto gaining Metal/Quick Powder boosts 2015-07-17 21:57:09 -04:00
Marty-D
f1ae041707 Fix Endeavor showing two failure messages 2015-07-17 21:31:28 -04:00
The Immortal
8c94abf8d8 Merge pull request #2064 from Rhythms88/master
Add an alias for Doubles OU
2015-07-18 03:23:33 +04:00
The Immortal
ba5cb5d932 Merge pull request #2063 from SolarisFox/patch-2
Randoms: Enable Lilligant to get Own Tempo
2015-07-18 03:12:50 +04:00
Rhythms
099540c48d Add an alias for Doubles OU 2015-07-17 17:07:22 -06:00
The Immortal
5ed4a13610 Random Battle: Improve Pyroar and Rapidash
- Reject Sunny Day if the Pokemon lacks an ability that benefits, and
lacks SolarBeam
- Add Dark Pulse to Pyroar to fix the issue raised in #2063
- Reordered the Status cases to weather/status/recovery/other instead
of just alphabetical
2015-07-18 03:05:01 +04:00
SolarisFox
7eb1a284d9 Randoms: Enable Lilligant to get Own Tempo 2015-07-17 16:04:19 -07:00
Ivo Julca
4986032b75 Add aliases for various OMs 2015-07-17 17:23:21 -05:00
Marty-D
fc1268da2e Fix Telepathy's interaction with Bide 2015-07-17 15:52:19 -04:00
Guangcong Luo
41a9706de0 Merge pull request #2058 from Slayer95/smogdex-formats
Bring back formats support for /smogdex
2015-07-17 13:41:00 -05:00
Guangcong Luo
0eb6f4b244 Merge pull request #2006 from ascriptmaster/move-fixes-2
Fix PP deduction interactions with Pressure
2015-07-17 13:40:19 -05:00
Ivo Julca
6dfcc73bac Bring back formats support for /smogdex
Early versions of the revamped Smogon Pokédex dropped support for formats; however, now more formats than just Singles/Doubles are supported, and there furthermore main pages for those.
2015-07-17 07:24:35 -05:00
The Immortal
37a855b450 Ban Smooth Rock from Monotype 2015-07-17 13:21:01 +04:00
Kevin Lau
b0e1fd5789 Fix Pressure's interaction with multi-target moves and Follow Me
Implement new function getMoveTargets to list all move targets given a
user and a move. Refactor Battle system to remove redundancies with
checking move targets. Run the RedirectTarget in this function instead of
later after TryMove, since technically single-target moves changing
targets should occur before the move is attempted.

Refactor the DeductPP event to be a singleEvent that targets the Pokemon's
ability instead of a global event. Run this event on the move's targets as
calculated by BattlePokemon#getMoveTargets.
2015-07-17 01:47:55 -07:00
Ivo Julca
896cd60c26 Battle Factory: fix sets with more than 510 total EVs 2015-07-16 17:56:14 -05:00
Kevin Lau
7a5ff2166f Sky Drop always redirects to the correct target 2015-07-16 04:10:05 -07: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
Ivo Julca
4b437ca62c Battle Factory: update sets for recent bans 2015-07-15 06:21:00 -05: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
The Immortal
912ef37a3c Move Combusken to NU 2015-07-13 20:25:40 +04:00
The Immortal
c7cc620527 Add gen 4 Munchlax event 2015-07-13 19:36:58 +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
Austin
62257b0677 Ban Victreebel from PU 2015-07-11 08:38:01 -06:00
The Immortal
449718c383 Move Sneasel and Gallade to BL3 2015-07-10 13:30:55 +04:00
Kevin Lau
7608237e64 Fix Hoopa, Diancie, and Volcanion's Pokedex colors 2015-07-09 14:01:21 -07:00
Jackson
68eae04884 Add mega pokemon aliases.
Add mega pokemon aliases: maero and mray.
2015-07-07 18:20:22 +10:00
Kevin Lau
be03f23c78 Replace TryWeather event with battle.suppressingWeather 2015-07-06 17:00:41 -07:00
Marty-D
51e9c3d922 Fix Taunt duration on targets switched in during the turn 2015-07-04 22:04:28 -04:00
Kevin Lau
c2043c5258 Merge pull request #2004 from Zipzapadam/patch-2
Add BD (Belly Drum), Tflame, and Smogon Bird
2015-07-03 19:14:04 -07:00
Marty-D
afc1fbd141 Show correct species name for Species Clause 2015-07-03 11:33:55 -04:00
Ivo Julca
6f9437684a Remove volatiles for Beat Up and Triple Kick after the moves are run 2015-07-02 20:25:17 -05:00
The Immortal
5b1a2decdc Add new Pokemon events 2015-07-03 00:48:23 +04:00