Commit Graph

9192 Commits

Author SHA1 Message Date
Guangcong Luo
8fd4ea2bae Fix locked move and PP tracking interaction 2015-07-26 04:18:31 -04:00
Guangcong Luo
eb55cf35d4 Merge pull request #2080 from SolarisFox/patch-1
/dexsearch: exclude bide as a priority move
2015-07-26 07:51:53 +00:00
Ivo Julca
ed0f8ed614 Fix mutation of Shaymin typing in STABmons set validation 2015-07-26 01:32:37 -05:00
SolarisFox
58ee2c6c2d /dexsearch: exclude bide as a priority move 2015-07-25 23:20:13 -07: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
Guangcong Luo
d21ac1b768 Workaround for unavailable IPs
Some servers don't support getting IPs from sockets, for some reason.
In these servers, locking/banning one user no longer locks everyone.
2015-07-25 19:29:55 -04:00
Marty-D
192ad88ef9 Fix remaining boost orders
- Magnetic Flux, Shift Gear, Weak Armor
2015-07-25 11:40:36 -04:00
Ivo Julca
fc3adb13aa Make /formatshelp less spammy 2015-07-25 09:55:58 -05:00
Marty-D
d00ed0c5c5 Fix trailing whitespace from cf295251a1 2015-07-24 21:26:28 -04:00
Marty-D
aadef53c75 Gen IV: Fix Leaf Guard 2015-07-24 21:23:12 -04:00
Marty-D
94e4027505 Gen IV: Fix Flower Gift 2015-07-24 21:21:51 -04:00
Marty-D
2903c96974 Merge pull request #2075 from Pikachuun/master
Fix Flower Gift
2015-07-24 20:52:41 -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
Antar1011
2efd17818c Pancham is LCBL
http://www.smogon.com/forums/threads/lc-underused-pancham-banned-see-post-141.3523929/page-6#post-6341391
2015-07-24 09:43:33 -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
f875a2648f Merge pull request #2078 from Slayer95/tournament-only
Update formats list protocol to support tournament-only formats
2015-07-24 10:06:51 +00:00
Ivo Julca
3aefdbf7e0 Update formats list protocol to support tournament-only formats 2015-07-24 02:41:29 -05:00
Guangcong Luo
34dfc4ba6e Add some more room miscounts to debug log 2015-07-24 03:35:57 -04:00
Guangcong Luo
df66ef86fc Support a non-numeric avatar
bw2elesa is basically an easter egg avatar for anyone who follows
us on GitHub... not like it matters; I bet most of you already have
customs anyway...
2015-07-24 03:35:57 -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
Konrad Borowski
af53f4f989 Mix and Mega: Check speed when carrying Cameruptite 2015-07-24 08:49:45 +02:00
The Immortal
2e6ffd3d4c Ban Pidgeotite from UU 2015-07-23 22:47:22 +04:00
Juanma Serrano
d32815c764 Gen 1 RandBats: Update Paras family essential
An attacking move is going to be more important.
Additionally, sometimes the user will prefer other status ailment to spore.
2015-07-23 13:43:58 +02:00
Marty-D
21a7fcc8bc Fix Parental Bond interaction with two-turn moves 2015-07-22 22:04:06 -04:00
Marty-D
cff37c69db Gen V: Actually fix Skill Swap messages 2015-07-22 21:32:50 -04:00
Guangcong Luo
2a94634e7e Increment version number 2015-07-22 18:16:13 -04:00
Guangcong Luo
cab10bbdb8 Update Endless Battle Clause
Virtual (Transformed/Mimiced) self-switch (U-turn/Pass/etc) moves
now count as PP stalling.
2015-07-22 18:15:21 -04:00
Guangcong Luo
23378149eb Fix gen 5 Skill Swap message 2015-07-22 17:43:01 -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
1dde0a9473 Some debug code for diagnosing node-static issues 2015-07-21 06:39:10 -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
Guangcong Luo
53501b32bb Merge pull request #2072 from ascriptmaster/move-fixes-3
Update priority of switches when a player has no actives
2015-07-21 01:13:03 +00:00
Kevin Lau
58f4c1e145 Update priority of switches when a player has no actives
Switches and runSwitch were recently updated to priority 7 and 7.1, so
this part needs to be updated as well.
2015-07-20 16:58:54 -07:00
Ivo Julca
b2cdda40cb Fix support for aliases in /formatshelp 2015-07-20 17:51:53 -05:00
Ivo Julca
1f4c352ee0 Fix lobby broadcast of /formatshelp 2015-07-20 17:33:12 -05: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
b2b9dc75c0 Fix HP Percentage Mod 2015-07-20 14:44:56 -05:00
Guangcong Luo
e31b48d685 Merge pull request #2073 from kotarou3/tournaments
Fix tournament bug where merging users doesn't automatically send an update
2015-07-20 05:43:23 +00:00
小太
789dd73c46 Fix tournament bug where merging users doesn't automatically send an update 2015-07-20 15:14:46 +10:00
Kevin Lau
b310eb00b9 Add Intimidate test for double-KOs 2015-07-19 16:54:55 -07:00