Commit Graph

3234 Commits

Author SHA1 Message Date
Guangcong Luo
8fd4ea2bae Fix locked move and PP tracking interaction 2015-07-26 04:18:31 -04:00
Ivo Julca
4061ca4d5c Battle Factory: update sets
This adds the remaining Arceus formes,bringing the Ubers tier in line with
http://www.smogon.com/forums/threads/representation-of-unviable-ubers-in-battle-factory.3544108

Some UU and NU sets are hereby updated as well.
2015-07-26 00:34:25 -05:00
Marty-D
192ad88ef9 Fix remaining boost orders
- Magnetic Flux, Shift Gear, Weak Armor
2015-07-25 11:40:36 -04:00
Pikachuun
cf295251a1 Fix Flower Gift 2015-07-24 20:03:25 -04:00
Guangcong Luo
fbac721b07 Merge pull request #2079 from ascriptmaster/move-fixes-2
Normalize ModifySpe calculations with the other Modify-Stat events
2015-07-24 22:41:48 +00:00
The Immortal
e8e97ab789 Prevent shiny Hoopa 2015-07-25 02:20:22 +04:00
Kevin Lau
0bbd3650b7 Normalize ModifySpe calculations with the other Modify-Stat events
The current implementation of ModifyAtk, ModifyDef, etc. is to pass the
actual stat into the event, have event handlers run battle.chainModify(),
ModifySpe passes in a modifier variable, calls battle.chain(), and then
ends with battle.modify() using the modifier variable. The way chainModify
is implemented within the event system also means that it chains together
modifiers in the same manner and finishes with battle.modify(), meaning
that there is no need for ModifySpe to use battle.chain() and
battle.modify() manually.

This also fixes the effect of BattlePokemon#getStat on stats other than
speed.
2015-07-24 12:19:42 -07:00
Marty-D
974ecec510 Fix Curse and V-create boost order 2015-07-24 12:54:28 -04:00
Marty-D
112aa72378 Fix Parental Bond with spread moves having only one target 2015-07-24 12:37:53 -04:00
The Immortal
aee36ef6c0 Fix Shell Smash boost order 2015-07-24 19:53:23 +04:00
Kevin Lau
bbec40bff4 Fix Secret Power's short description 2015-07-24 05:22:29 -07:00
The Immortal
ea546bf8e4 Change Sturdy to use -ability
Relevant:
https://github.com/Zarel/Pokemon-Showdown-Client/commit/a2e9ed70bfa78c26
bfef41d871116455519af04c
2015-07-24 14:23:38 +04:00
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