Commit Graph

7793 Commits

Author SHA1 Message Date
Kris Johnson
a0128b8a95
Fix Zacian, Zamazenta, and Eternatus legality (#6430) 2020-03-07 14:54:00 +04:00
Guangcong Luo
125fe31d06 Improve eslintrc
Fixed some more code style, allowing these rules to be enabled:

- `comma-dangle`
- `function-paren-newline`
- `member-delimiter-style`
- `no-eval`
- `no-fallthrough`
- `no-misused-promises`
- `no-unused-vars`
- `operator-linebreak`
2020-03-06 22:35:55 -08:00
Kris Johnson
cc681692dd
Properly implement Sinistea and Polteageist formes (#6429) 2020-03-06 22:35:19 -08:00
Kris Johnson
9d995eb838
SSB: Update Aeonic's rank (#6426) 2020-03-06 17:58:43 -08:00
The Immortal
583ca129c3 Remove display for trapping moves after using Substitute 2020-03-06 17:28:38 +04:00
Guangcong Luo
d450b50936
Fix more doubles tiers (#6421) 2020-03-05 14:57:00 -08:00
Guangcong Luo
d007bdc12f
Force timer if blitz mod is in effect (#6418)
Also increase first turn time to 40
2020-03-05 09:43:56 -08:00
The Immortal
f1a27dc79c
Move Ninetales-Alola to UUBL 2020-03-05 01:15:35 +04:00
The Immortal
03f34611e5 Random Battle: Update sets and levels 2020-03-02 23:54:37 +04:00
The Immortal
52e82453cf Random Battle updates 2020-03-01 23:46:13 +04:00
Kris Johnson
bb1c4f5fa7
Fix various Pokemon's doubles tiers (#6410) 2020-03-01 23:39:38 +04:00
The Immortal
876f8a369f
Move Slurpuff to NUBL 2020-03-01 21:32:51 +04:00
The Immortal
ce7a78db42 March tiers update 2020-03-01 19:02:28 +04:00
The Immortal
fad1d3c7a6 Random Battle improvements 2020-03-01 05:19:46 +04:00
The Immortal
11e33f925d Update Octolock activation 2020-03-01 00:59:35 +04:00
The Immortal
22feeebaee Gen 5: Fix Rapid Spin 2020-02-29 12:50:50 +04:00
Zachary Perlmutter
72a88037e7
Mark old moves as viable again (#6400) 2020-02-28 05:51:03 +04:00
ACakeWearingAHat
69ab44a78e
Gen 5: Randoms update (#6387) 2020-02-27 17:19:51 +04:00
Kris Johnson
03f2378d8c
Correct validation for UU NFE Clause/Little Cup (#6395) 2020-02-24 21:19:17 -08:00
Guangcong Luo
72976d1001 Fix Gen 3 Quick Claw 2020-02-24 19:27:50 -08:00
Kris Johnson
f9d8da6053
Move Diggersby, Durant, and Weavile to UUBL (#6389)
https://www.smogon.com/forums/threads/np-ss-uu-stage-1-here-comes-the-sun-diggersby-durant-weavile-banned.3658529/page-6#post-8374900
2020-02-23 22:13:54 -08:00
Marty-D
795ce777ec
Remove Torment volatile when Dynamaxing 2020-02-23 17:45:16 -05:00
The Immortal
bd262b726c Fix ADV UU NFE Clause 2020-02-23 22:25:35 +04:00
Guangcong Luo
a41e4b051f Fix infinite loop with disabled Max Guard 2020-02-23 04:47:52 -08:00
The Immortal
cecbf396cd Revert "Fix Moxie and Beast Boost in doubles"
This reverts commit d7af602017.
2020-02-23 13:46:18 +04:00
Kris Johnson
fd63ee2a3b
Add ADV UU NFE Clause (#6386) 2020-02-23 00:15:35 -08:00
The Immortal
d7af602017 Fix Moxie and Beast Boost in doubles 2020-02-22 19:30:44 +04:00
The Immortal
563323f4c1 Fix Lum Berry activation 2020-02-22 05:39:37 +04:00
The Immortal
d7c09e0f0e Gen 5: Update Random Battle moves 2020-02-22 02:00:16 +04:00
urkerab
98edf3e025
Refactor Dragon Darts (#6378) 2020-02-21 06:36:41 -08:00
The Immortal
79af87374a Fix Wandering Spirit 2020-02-21 18:18:51 +04:00
The Immortal
03ecc3c4b1
Stench Weezing is unreleased 2020-02-21 16:45:16 +04:00
The Immortal
8e93518550 Max Guard is disabled by Taunt 2020-02-21 15:49:27 +04:00
Guangcong Luo
f89f44f209 Max Guard is disabled by Assault Vest 2020-02-21 00:46:28 -08:00
Guangcong Luo
e04769d3b8 Fix multi-hit move hitcount message 2020-02-20 17:49:10 -08:00
Guangcong Luo
1d09dd1174 Fix Dragon Darts bugs
- should not stop after one faint
- should not show miss message for first miss
2020-02-20 15:58:36 -08:00
The Immortal
5cb8c6ea9c Remove redundant Max Guard checks
bfa7ff2d3 added them to Max Guard.
2020-02-20 16:59:05 +04:00
Guangcong Luo
bfa7ff2d31 Update Max Guard
Max Guard doesn't block literally everything, just most things.
2020-02-20 02:28:57 -08:00
Guangcong Luo
14a252c208 Improve Dragon Darts description 2020-02-20 02:06:24 -08:00
Guangcong Luo
0df0d234f2 Fix Dragon Darts
Dragon Darts has a variety of mechanics that I don't care to fully
write unit tests for, but this commit should track its in-game
implementation much more closely.

If anyone still has a Dragon Darts interaction that this implementation
handles incorrectly, they should confront me about it.

Fixes #6279
2020-02-20 00:14:58 -08:00
Guangcong Luo
e3c9cf22ab Fix Max move Lightningrod redirection
Max moves can be redirected to allies, even though they can't
normally hit allies.

Fixes #6375
2020-02-19 01:01:58 -08:00
The Immortal
c83199801b G-Max Sweetness doesn't have any battle text 2020-02-19 05:11:50 +04:00
Guangcong Luo
d6fffde560 G-Max Wildfire etc deal damage on last turn 2020-02-18 13:18:39 -08:00
Guangcong Luo
167c84124a Refactor Gyro/Electro Ball implementations
This one's for you, @scheibo

https://github.com/smogon/pokemon-showdown/pull/5805/files#r326914000
2020-02-18 13:18:39 -08:00
Guangcong Luo
6778bc585d Fix Yawn Safeguard 2020-02-18 13:18:39 -08:00
The Immortal
b6f9a8f6df Fix Encore mechanics vs Dynamax 2020-02-18 16:21:22 +04:00
Guangcong Luo
206b5c2b26 Fix multihit moves vs Emergency Exit 2020-02-18 01:13:10 -08:00
Guangcong Luo
518d4b796a Fix Rapid Spin not activating against Sub 2020-02-17 14:10:29 -08:00
Guangcong Luo
14cdc79a8e Fix Dynamax Toxic damage 2020-02-17 11:57:59 -08:00
The Immortal
a931c13bda Fix 5cf40b239 2020-02-17 16:46:46 +04:00
The Immortal
5cf40b239d Mail does not exist in Sw/Sh
It doesn't work either if you try to hack it.
2020-02-17 16:38:20 +04:00
Guangcong Luo
07ae9d0ea2 Add hint for Court Change Sticky Web Defiant 2020-02-17 00:22:47 -08:00
Guangcong Luo
78eceb6f03 Fix Emergency Exit activating on faint 2020-02-16 23:42:43 -08:00
The Immortal
78449f7ef8
Update RU banlist 2020-02-17 04:42:25 +04:00
The Immortal
e877044985 Random Battle improvements 2020-02-17 01:31:02 +04:00
Guangcong Luo
eee403fbea Properly fix Pledge moves
I had this fixed and forgot to commit + push it. :(
2020-02-15 15:40:59 -08:00
Guangcong Luo
1fa9e141f6 Fix Pledge moves 2020-02-15 13:38:58 -08:00
The Immortal
5985e1f3e0 Add missing Steel Beam Pokemon 2020-02-15 23:15:44 +04:00
The Immortal
9ad09488f5 Random Battle updates 2020-02-15 22:01:36 +04:00
Guangcong Luo
09e563f9fc Fix some moves triggering abilities twice 2020-02-15 08:54:14 -08:00
The Immortal
14d6509fbf
Fix Slowpoke being legal 2020-02-15 20:47:32 +04:00
Kris Johnson
da66b5c599
OU: Ban Melmetal and Kyurem-Black (#6370)
https://www.smogon.com/forums/threads/kyurem-black-and-melmetal-are-now-banned-from-ou.3660047/
2020-02-14 23:20:26 -05:00
Guangcong Luo
7dab5f8d79 Fix Rapid Spin activation order
Order should be:

1. -Spe
2. Rocky Helmet
3. hazard removal if not fainted
2020-02-14 18:13:49 -08:00
Guangcong Luo
b14b38598b Improve sim protocol documentation
This new protocol spec resolves ambiguities in cases where multiple
message types would be valid (no more wondering if an ability
activation is `-activate` or `-ability`, no more wondering if a
blocked attack is `-fail` or `-block` or `-immune` or `-activate`). It
also better matches the client's `data/text.js`.
2020-02-14 17:01:18 -08:00
The Immortal
9e70a66f2d Power is unusable in Sw/Sh 2020-02-14 23:56:18 +04:00
The Immortal
0564851b49 VGC: Properly ban Toxtricity-Low-Key-Gmax 2020-02-14 23:08:36 +04:00
Russell Jones
4615693685
Fix Gyro Ball/Electro Ball divide-by-0 edge cases (#5805) 2020-02-14 10:39:54 -08:00
The Immortal
bbc58ee68a Update Little Cup 2020-02-14 21:02:52 +04:00
The Immortal
607a507be1
Move Pikachu forms to the lowest tier 2020-02-14 01:16:21 +04:00
The Immortal
5a7ec76b6b Fix validation for Virtual Console & Let's Go moves 2020-02-13 23:59:51 +04:00
The Immortal
0b305661b6 Update Standard GBU banlist 2020-02-13 23:06:15 +04:00
The Immortal
6660c8ac0d Re-sort learnsets 2020-02-13 15:40:41 +04:00
Kris Johnson
358d947b15
Add Let's Go transfer support (#6367) 2020-02-12 21:22:45 -08:00
The Immortal
65a2bad577
Move Jirachi/Kyurem-B/Marshadow to DUber 2020-02-13 07:41:56 +04:00
The Immortal
5f6c26ffdc Snatch isn't usable in Sw/Sh 2020-02-13 07:29:43 +04:00
Guangcong Luo
652c7163cf
Refactor queue to new BattleQueue class (#6358)
Previously, battle queue stuff was just strewn around `battle.ts`.
This gives it a new home: `battle-queue.ts`.

This was intended to make `battle.ts` slightly more tractable, although
the difference is so small that maybe I shouldn't bother. Oh, well,
every little bit helps.
2020-02-12 16:20:17 -08:00
Kris Johnson
d5388bc58b
Add (Uber) support (#6363) 2020-02-13 01:55:56 +04:00
Kris Johnson
239b7cdf13
Update VGC banlist (#6361) 2020-02-12 21:24:06 +04:00
Kris Johnson
92c7d377a7
Add Pokemon Home support (#6349)
Co-authored-by: The Immortal <the_immortal123@live.com>
2020-02-12 14:54:55 +04:00
The Immortal
f24df5dd58 Correct Light of Ruin data 2020-02-12 14:27:45 +04:00
The Immortal
19cdf79821 Update OMs 2020-02-12 14:19:29 +04:00
The Immortal
14558e3b27 Update Random Battle levels 2020-02-12 12:16:43 +04:00
Guangcong Luo
1914a37aba Fix Eject Pack to activate for self-boosting 2020-02-11 11:16:46 -08:00
Guangcong Luo
ee4435716f Fix crash in Knock Off + Substitute
(This also fixes a bug where hitting Substitute procced DamagingHit
events.)
2020-02-10 15:37:34 -08:00
The Immortal
ec5471872f Move Dracozolt to UUBL 2020-02-10 07:16:07 +04:00
Kris Johnson
c870615cad
Accurately update LGPE tiers (#6354) 2020-02-09 07:57:09 +04:00
CasualPokePlayer
fa3bece2ea
Update LGPE OU Tiers (#6353)
https://www.smogon.com/stats/2019-11/gen7letsgoou-1630.txt
2020-02-08 09:44:17 -08:00
Guangcong Luo
e464ccd0ad Improve Present Kee Berry workaround 2020-02-08 08:14:08 -08:00
Guangcong Luo
6a677e39e8 Fix Emergency Exit timing
This is a really hacky implementation of Emergency Exit, but Emergency
Exit itself is a huge mess on cart, too.

Our previous implementation:
- activated Emergency Exit at AfterMoveSecondary timing for move damage
- activated Emergency Exit immediately after dealing any other damage

This new one:
- activates Emergency Exit only in three situations:
- right after AfterMoveSecondary timing, for move damage
- right after DamagingHit timing, for DamagingHit residual damage
  (Rough Skin, Iron Barbs, Rocky Helmet)
- right after the switch update, for switch-hazard residual damage
  (Stealth Rock, Spikes)
- does not otherwise activate (so Substitute, Hail, Toxic, etc no
  longer activate Emergency Exit)

This should much accurately simulate Emergency Exit behavior, including
most famously timing it after healing berries after hazards, as
documented in:

https://www.smogon.com/forums/threads/pokemon-sun-moon-battle-mechanics-research.3586701/#post-7075354

Fixes #6309
2020-02-08 08:07:39 -08:00
Guangcong Luo
55cbc52bba Fix bugs with secondary/ability order
Fixes #6346

The `AfterDamage` event has been replaced with `DamagingHit`, which
which happens for damaging moves after secondaries.

The `AfterHit` event has also been moved after `DamagingHit`, to make
sure Knock Off still procs after Rocky Helmet.

`AfterHit` is no longer a valid event on `secondary` and `self` blocks,
because it's meaningless in those blocks, anyway. All `self.onAfterHit`
and `secondary.onAfterHit` handlers have been moved to `onHit`, which
should have the same timing in practice.
2020-02-08 08:07:39 -08:00
Guangcong Luo
0eae50191b Improve Wide Guard description 2020-02-08 07:44:10 -08:00
Volco
dab2d21e3f
Fix Kee Berry activating due to Present healing (#5745) 2020-02-08 05:51:56 +04:00
Salaaa
66e46b8421
SSB: Prevent salamander's ability from crashing in edge cases (#6344) 2020-02-07 20:14:27 -05:00
The Immortal
e67a55d7ad Macho Brace is available in Sw/Sh 2020-02-07 14:21:36 +04:00
Kris Johnson
8aa26d39b0
Fix Psychic Terrain crash (#6348) 2020-02-07 04:12:26 +04:00
The Immortal
15fe9f27e9 Random Battle: Improve Inteleon 2020-02-07 03:55:58 +04:00
Kris Johnson
9f08d93244
Toxtricity-Low-Key can Gigantamax (#6343) 2020-02-07 03:54:07 +04:00
Guangcong Luo
b30758a3e1 Standardize Alcremie forms
We're now using what should be the official names for the Alcremie
cosmetic forms.
2020-02-06 04:09:55 -08:00
DeltaCoderr
d4779cc558
Update Ranks in SSB (#6345)
* Update  Ranks in SSB

* Update Schiavetto's  SSB Rank.
2020-02-06 15:29:55 +04:00
The Immortal
da7507f806 Gen 5 Random: Don't reject Inner Focus 2020-02-06 01:05:45 +04:00
The Immortal
45b5a22985 Gen 2 randoms: Delete invalid set 2020-02-05 23:58:30 +04:00
Kris Johnson
9f27583ff1
Release Gigantamax Toxtricity (#6341) 2020-02-05 10:57:13 -08:00
Kris Johnson
4ef357cc92
Add aliases for Heavy-Duty Boots, Obstagoon, and Mr. Rime (#6340) 2020-02-05 10:57:01 -08:00
Salaaa
3b59e44b52
SSB: Fix Lava Terrain damage boost (#6332) 2020-02-06 01:01:25 +10:30
Guangcong Luo
3255d287b8 Add hint for Psychic Terrain flying interaction
This is by far the most commonly reported "bug" on Twitter, so it's
probably worth adding a hint for.
2020-02-05 05:14:34 -08:00
Ezaphs
d10e93809b
Ban Mega Gengar from LGPE OU (#6333)
https://www.smogon.com/forums/threads/lgpe-ou-spectre-mega-gengar-is-now-banned.3658931/#post-8357495
2020-02-03 17:12:36 -08:00
Kris Johnson
d3e266cddd
Fix crash with TRs (#6330) 2020-02-03 00:25:49 -08:00
Kris Johnson
05efe2e011
Add TRs (#6317) 2020-02-02 23:19:45 -08:00
Marty-D
8d644fcb0c Calculate Innards Out damage using non-Dynamax HP 2020-02-02 18:04:33 -05:00
The Immortal
3278f97576 Show Crowned formes in Team Preview
They are immediately visible after Team Preview in-game, but PS! lacks that feature so this is the best compromise. This also fixes their appearance in Hackmons Team Preview.
2020-02-03 01:05:38 +04:00
Marty-D
47c8d6b52b Fix Pickpocket interaction with switches
U-turn is the only switch effect that occurs after Pickpocket resolves during an attack segment (even though the switch message and animation appear to happen before it)
2020-02-02 15:02:41 -05:00
The Immortal
9b07458ee9 Fix Last Resort
And the message activation of No Retreat which was broken in a79c094df.
2020-02-02 23:51:15 +04:00
The Immortal
a79c094df3 Update No Retreat mechanics 2020-02-02 23:18:52 +04:00
The Immortal
d9327d945a Simplify max moves check in Copycat 2020-02-02 22:30:04 +04:00
Marty-D
9e443cc337
Fix Copycat against non-Dynamax Max Moves 2020-02-02 13:05:51 -05:00
The Immortal
6db191a0a8 Implement Copycat interaction with Max moves 2020-02-02 21:29:55 +04:00
The Immortal
89e79a6e81 Fix randoms crash 2020-02-02 17:01:30 +04:00
Kris Johnson
e81fab513a
Fix Butterfree-Gmax's doubles tier (#6328) 2020-02-02 14:51:45 +04:00
James Ko
1596429c2e
Correctly set hp and maxhp fields if Zygarde transforms while Dynamaxed (#6318) 2020-02-01 22:06:08 -08:00
QuiteQuiet
211cefb262
Fix Healing Wish for Gen 8 (#6296)
- Healing Wish is not consumed if the Pokemon switching in
  has full health and no status condition.
- Being statused with full health will consume the Healing Wish.
- It does not trigger on damage after switching in.
- The effect will be consumed if an injured Pokemon is swapped
  into a slot with an active Healing Wish by Ally Switch.
2020-02-01 22:04:21 -08:00
Kris Johnson
770e761e22
Add (DUU) and fix Gurdurr's doubles tier (#6327) 2020-02-02 05:48:51 +04:00
The Immortal
a65f91114f Random Battle: Improve Greedent 2020-02-02 00:04:19 +04:00
The Immortal
778aff1ea0 Correct No Retreat mechanics 2020-02-01 23:43:28 +04:00
The Immortal
6c88ebc9ac Fix Challenge/Hackmons Cup 2020-02-01 23:05:27 +04:00
The Immortal
55a4678ffd Correct Dynamax HP formula 2020-02-01 21:31:11 +04:00
The Immortal
a7a82a2ddd February tier shift 2020-02-01 20:55:00 +04:00
The Immortal
cddb3ea151 Remove gen 7 ladders 2020-02-01 15:45:46 +04:00
Kris Johnson
4c5640d051
Add February 2020 OMotM and RoA Spotlight (#6323) 2020-02-01 15:10:59 +04:00
The Immortal
4bc7a8dedb Fix Clangorous Soul
Closes #6321
2020-01-31 16:36:20 +04:00
The Immortal
49be40c33e Safeguard is also affected by Court Change 2020-01-31 15:02:37 +04:00
The Immortal
7c3f9f47a2 Update Court Change effects 2020-01-31 14:00:10 +04:00
The Immortal
5e69597b93 Improve Court Change shortDesc 2020-01-30 13:11:05 +04:00
The Immortal
c34b41661c Venusaur/Blastoise learn Frenzy Plant/Hydro Cannon in Sw/Sh 2020-01-29 19:52:01 +04:00
The Immortal
68e0bcb75f Refactor single-use items
This adds a `boosts` property to items that runs in `useItem`.
This allows it to be added to `datasearch` or similar plugins.
The item activation messages are now as accurate as in-game.
The Gem activation message is also consolidated in `useItem`.
2020-01-28 13:21:23 +04:00
Guangcong Luo
0e9e68db71 Fix King's Shield shortDesc 2020-01-27 19:05:49 -08:00
Guangcong Luo
4ff0f0bf2e Update shortDescs for "damaging attacks"
Moves like King's Shield, Obstruct, and Mat Block only protect against
non-Status moves; this is now mentioned in shortDescs.
2020-01-27 18:26:57 -08:00
The Immortal
41f1085d00 Wandering Spirit: Prevent swapping Illusion/Wonder Guard 2020-01-27 05:56:55 +04:00
The Immortal
f9c5b2868b Random Battle updates 2020-01-27 05:26:08 +04:00
The Immortal
5b910431a7 Disguise: Fix double activation 2020-01-25 16:20:40 +04:00
The Immortal
83a23bb36d Fix move numbers 2020-01-23 17:09:48 +04:00
scoopapa
ce6955fe94 Clean Slate Micro Balance Update #1 (#6304) 2020-01-23 13:37:37 +04:00
Kirk Scheibelhut
e44a5683c3 Add EBC to Gens 1 and 2 (#6298)
Also add test for 1000 turn termination behavior.
2020-01-22 14:13:36 -08:00
The Immortal
c754dca3ea Random Battle improvements 2020-01-22 12:12:16 +04:00
The Immortal
0b06127638 Gen 5 Randoms: Copy updates from gen 6 2020-01-22 08:22:04 +04:00
The Immortal
38671c67c7 Doubles: Add Gravity Sleep Clause
Closes #6299
2020-01-22 07:28:40 +04:00
The Immortal
0aba98eb11 Fix Tar Shot 2020-01-21 10:45:39 +04:00
urkerab
d1a66cbe07 Simplify handling of Encore volatile (#6292) 2020-01-20 17:00:37 +04:00
The Immortal
63fc04c9aa Use baseMaxhp in move.heal 2020-01-20 15:52:06 +04:00
HoeenHero
dc13b32ed8 Charizard can learn Blast Burn in Gen 8 2020-01-19 08:34:48 -05:00
urkerab
351089c3d9 Always use getAbility to get a Pokémon's Ability (#6293) 2020-01-18 19:37:01 -07:00
Guangcong Luo
b48733cb7a Rename resolveTarget -> getRandomTarget
Should be much clearer in terms of what it's actually doing.
2020-01-18 15:43:34 -07:00
Guangcong Luo
e6f53a7ad2 Implement smart target tracking
(Stalwart, Propeller Tail, Snipe Shot behavior.)
2020-01-18 15:43:33 -07:00
Guangcong Luo
ec68ff11a2 Refactor Life Dew to target allies
`allyTeam` is the incorrect target
2020-01-18 15:43:31 -07:00
The Immortal
8f7df1e5c4 Set Genesect drives as past items 2020-01-18 14:17:12 +04:00
The Immortal
9c338dbd18 Properly implement 8ccfed069 2020-01-18 05:24:44 +04:00
The Immortal
b54c25a2b2 Perish Body: Fix text 2020-01-17 14:52:42 +04:00
The Immortal
38053c0168 Random Battle improvements 2020-01-17 14:05:15 +04:00
The Immortal
cb11d42c73 Update ability clause 2020-01-17 13:58:13 +04:00
urkerab
f5718b7ab0 Make Dynamax and Inner Focus prevent setting the Flinch volatile (#6287) 2020-01-16 20:08:55 -05:00
Salaaa
f42699ee0a Fix Life Dew interaction with Dynamax (#6288) 2020-01-16 06:19:24 +04:00
The Immortal
8ccfed069c Encore and Torment fail against Dynamax 2020-01-15 02:41:56 +04:00
CK Yong
f8d0f3fffd Fix Pickpocket applying when being switched out through Eject Button (#6254)
Also makes sure that dragging moves like Dragon Tail do activate Pickpocket.
2020-01-13 19:32:37 -05:00
Kris Johnson
d20a46d4c7 Update item sprite numbers (#6276) 2020-01-13 09:23:09 -05:00
Kris Johnson
40d6a51747 UU: Update bans (#6282)
https://www.smogon.com/forums/threads/np-ss-uu-stage-1-here-comes-the-sun-crawdaunt-gengar-and-hawlucha-banned.3658529/page-2#post-8339339
2020-01-13 10:54:20 +04:00
urkerab
b589745a25 Typescript move.target (#6260) 2020-01-11 09:10:10 -05:00
Kris Johnson
a97360a966 Slowpoke-Galar can use Eviolite (#6274) 2020-01-10 02:50:12 +04:00
Kris Johnson
54df4fb1ed Add Slowpoke-Galar (#6272) 2020-01-09 21:33:15 +04:00
The Immortal
9253a115b1 Learnsets: Remove duplicate 7V entries 2020-01-09 20:50:23 +04:00
The Immortal
d70af8e12a Update Slowpoke data 2020-01-09 20:43:58 +04:00
The Immortal
18ef25958a Fix Zygarde-C's HP 2020-01-09 18:38:07 +04:00
The Immortal
5b97367952 Update Skill Swap & Wandering Spirit 2020-01-09 10:49:41 +04:00
Dawnofares
32382cc95d Clarify Wandering spirit's shortdesc (#6269) 2020-01-09 04:33:23 +04:00
The Immortal
1ec2d0bfa1 Doubles: Remove Evasion Abilities Clause
Closes #6268
2020-01-09 04:02:56 +04:00
The Immortal
491e0575e0 Random Battle updates 2020-01-07 22:07:09 +04:00
urkerab
4b55ac9ba9 Fix interaction between Court Change, Sticky Web, and Defiant or Competitive (#6265) 2020-01-07 07:12:33 +04:00
The Immortal
6b2fb44abb Set unavailable fossils as "Past" items 2020-01-07 04:17:29 +04:00
The Immortal
0edf3aae55 Correct Zippy Zap effects 2020-01-07 03:56:27 +04:00
The Immortal
8c432e6118 Fix Screen Cleaner messages
This makes the ability activate first, and also fixes the duplicate screen ending messages.
2020-01-07 03:40:08 +04:00
The Immortal
f493304819 Pichu learns Volt Tackle 2020-01-07 01:51:47 +04:00
The Immortal
cee7c21bc1 Fix Psyduck events 2020-01-07 00:43:59 +04:00
Jacob Ellis Duncan
766dcbc3b4 Update item descriptions (#6211) 2020-01-06 12:00:20 -05:00
The Immortal
2f00b61024 Correctly implement Ice Scales 2020-01-06 18:43:09 +04:00
ZardMX
7736fa556a Status moves bypass Obstruct (#6264)
In-game proof: https://www.youtube.com/watch?v=8EVTeRfY-0c (Thanks KennedyLFC)
2020-01-06 18:35:31 +04:00
SalamanderFire
6b2293918f SSB: More bugfixes/updates (#6262) 2020-01-05 22:47:15 -05:00
Marty-D
7c814ada7f Fix Gulp Missile 2020-01-05 20:45:36 -05:00
The Immortal
70125f68a0 Fix Pollen Puff 2020-01-06 02:34:02 +04:00
The Immortal
b7258fc06b
Move Hawlucha to UUBL 2020-01-05 23:57:28 +04:00
Guangcong Luo
138fccbaa8 Consolidate more rules into Standard
- `Obtainable` and `Team Preview` are now part of `Standard`

- `minSourceGen: 8` is now a part of `-Unreleased` (which is part of
  `Obtainable`) in Gen 8. Instead, it's NatDex that overrides it with
	`minSourceGen: 1`. This allows `!Standard, Standard NatDex` and
	`!Standard NatDex, Standard` to work as intended.

- Duplicate rules are now checked for (does not apply to subrules, so
  multiple inheritance is still possible)

- It is now possible to inherit `minSourceGen` from rules.
2020-01-03 23:42:48 -05:00
The Immortal
8b8f963669 Fix Floral Healing 2020-01-04 03:41:33 +04:00
The Immortal
3d7b203fc3 Instruct should fail against Dynamax 2020-01-04 03:18:25 +04:00
SalamanderFire
d8a0449702 SSB: Bugfixes and Namechanges (#6241) 2020-01-03 18:16:48 -05:00
The Immortal
3fbcff08fa Fix Heal Pulse 2020-01-04 02:56:42 +04:00
The Immortal
1b7c47b6f4 Fix HP healing berries 2020-01-04 02:54:50 +04:00
The Immortal
52a1d7e5a3 Fix G-Max Finale text 2020-01-04 02:51:37 +04:00
The Immortal
6dbcff1811 Meowstic-F's hidden ability is unreleased 2020-01-04 02:37:14 +04:00
The Immortal
755afc350d Update Zacian & Zamazenta learnsets
- Add Steel Beam
- Remove duplicate learnsets from crowned formes
2020-01-04 02:32:17 +04:00
SalamanderFire
338ae14d33 Fix Drapion's tier (#6251) 2020-01-02 04:55:39 +04:00
Kris Johnson
f023c67038 Pet Mod: Fix Purugly and Ludicolo (#6250) 2020-01-02 03:48:03 +04:00
The Immortal
be24a4bdf2 Random Battle updates 2020-01-02 02:56:02 +04:00
Kris Johnson
a3d3d71863 Add Pet Mod of the Season (#6245) 2020-01-02 02:47:46 +04:00
Kris Johnson
4b127ad160 January usage-based tier changes (#6249) 2020-01-02 01:51:39 +04:00
Guangcong Luo
ca1f8ec820 Fix Howl ally-targeting
Fixes #6247
2020-01-01 11:10:49 +09:00
Quinton Lee
266928be83
Fix Charjabug's evolution method in /details 2019-12-31 17:22:11 -06:00
urkerab
5067f1fefa Fix displayed target of move-specific immunity in Gen 1 and 2 (#6244) 2020-01-01 01:44:33 +04:00
Kris Johnson
0535d76219 Move Gmax formes to Uber (#6242) 2020-01-01 01:25:48 +04:00
Marty-D
cc4c622e56
Add Sleep Clause Mod back to Standard Gen 4 rulesets 2019-12-31 12:30:25 -05:00
ZardMX
de7d8168af Fix Neutralizing Gas (#6232) 2019-12-31 16:29:21 +09:00
Kris Johnson
59154fadad Rename Vice Grip to Vise Grip (#6240) 2019-12-31 13:56:41 +09:00
urkerab
cbb11cf32c Shell trap takes effect directly after a physical hit (#6231) 2019-12-31 00:33:36 +09:00
The Immortal
a0bffce283 Revert "Max happiness in gen 8 is 160"
This reverts commit c7bc102c5a.
2019-12-30 16:44:39 +04:00
Guangcong Luo
744f7732e8 Fix rulesets
- Remove "Standard Ubers"

- Rename "Standard ND" -> "Standard NatDex"
2019-12-30 12:23:51 +09:00
urkerab
3db3f29a72 Fix fractional priority for Full Incense and Lagging Tail (#6230) 2019-12-30 10:08:22 +09:00
Kris Johnson
36a92b5465 Move Darmanitan-Galar to Ubers (#6236) 2019-12-30 01:13:39 +04:00
TheMezStrikes
80c04412d6 Fix typo in breaking swipe (#6227) 2019-12-30 00:53:58 +04:00
fart
2d8c5fa48a Court Change affects G-Max Steelsurge (#6235) 2019-12-30 00:52:07 +04:00
urkerab
b437e64efe Fix tier counting in Gen 5 randbats (#6234) 2019-12-29 20:01:59 +04:00
ZardMX
e06db3e117 Mew is obtainable with 3 perfect IVs in SwSh (#6228)
https://www.smogon.com/forums/threads/bug-reports-v3-read-original-post-before-posting.3634749/page-101#post-8322820
2019-12-29 03:27:27 +04:00
Kris Johnson
6a3945bb18 Custap Berry is released in ORAS and USUM (#6226) 2019-12-28 15:41:07 +04:00
te
87867f6824 Fix Toxtricity-Gmax Pokedex number (#6225) 2019-12-28 03:09:52 +04:00
The Immortal
5e8529faaa Correctly implement Court Change 2019-12-27 22:39:35 +04:00
The Immortal
519954624b Re-add gen 7 OMs 2019-12-27 22:38:00 +04:00
Guangcong Luo
c738027074 Fix crash/bug in Zen Mode 2019-12-27 22:09:12 +09:00
The Immortal
189a1421a8 Rename Sleep Clause to Sleep Moves Clause 2019-12-27 13:13:41 +04:00
urkerab
7152b42daf Calculate fractional priority once per turn (#6224) 2019-12-27 12:42:34 +09:00
The Immortal
fe00864b8e Add Sleep Clause rule 2019-12-27 05:09:24 +04:00
The Immortal
4414fab072 BW OU: Remove Sleep Clause 2019-12-27 01:08:47 +04:00
The Immortal
0199e9a952 Modify damage for Dynamax Cannon 2019-12-27 00:22:25 +04:00
The Immortal
0387853117 Update Court Change 2019-12-27 00:19:22 +04:00
The Immortal
1fbd92f925 Behemoth moves modify damage
Not BP.
2019-12-26 22:52:08 +04:00
The Immortal
390e542f75 Use onBasePower for Behemoth moves 2019-12-26 22:31:30 +04:00
Marty-D
fb430a1552 Revert "Fix Sunflora Gen 2 move legality (#6223)"
This reverts commit eb6d7d831e.
2019-12-26 10:22:36 -05:00
Marty-D
4c45af4dc3
Don't reveal Abilities against Magic Guard prior to Gen 7 2019-12-26 10:17:38 -05:00
Marty-D
1475df0674
Team Preview: Hide Zacian and Zamazenta formes
They transform silently once a battle starts
2019-12-26 10:13:21 -05:00
The Immortal
73c16225b7 Fix G-Max Steelsurge start message 2019-12-26 18:28:56 +04:00
Samantha
eb6d7d831e Fix Sunflora Gen 2 move legality (#6223)
Adding 'Sunflora + Razor Leaf + Synthesis'

Sunflora can only learn Razor Leaf at Level 10, after it evolves. It can only learn Synthesis at Level 31, before it evolves. So it can't have both.
2019-12-26 11:46:40 +09:00
Kris Johnson
578f2199fc Add 'eternamax' alias for Eternatus-E (#6219) 2019-12-25 15:49:48 +09:00
Guangcong Luo
b31b88a79b Add documentation for custom rules 2019-12-25 11:26:23 +09:00
The Immortal
a1b502f901 Random Battle improvements 2019-12-25 05:58:16 +04:00
Guangcong Luo
223e2af9fa Fix Custap Berry, Quick Claw, Stuff Cheeks
- Prevent Custap Berry and Quick Claw from activating on switches

- Stuff Cheeks now bypasses Unnerve and Magic Room
2019-12-25 09:42:39 +09:00
The Immortal
7f87804955 Update Screen Cleaner 2019-12-25 02:00:48 +04:00
The Immortal
f62ff19e8a Improve validation for unobtainable Pokemon
This merges the Glitch and Pokestar tags into a new Unobtainable tag that defines Pokemon that are only obtainable through hacking (such as Floette-Eternal and Missingno.). These Pokemon are legal in Hackmons of their specific generation only. Custom is used in future gens instead of Past because of National Dex legality.
2019-12-25 00:35:39 +04:00
urkerab
b82aeb623b Gorilla Tactics should only lock into the first successful move (#6217) 2019-12-24 20:35:42 +04:00
Guangcong Luo
7f772fba67 Fix Teatime
Fixes #6210
2019-12-24 14:49:47 +09:00
Guangcong Luo
e953747570 Improve error text for Arceus EV Limit rule 2019-12-24 13:39:15 +09:00
urkerab
3d38fbc89f Make semi-invulnerability work in Gen 1 again (#6215) 2019-12-24 02:59:42 +04:00
Kris Johnson
e2a811aae2 CAP: Properly handle learnset updates (#6214) 2019-12-24 02:49:29 +04:00
The Immortal
e04d2eef8b Gen 4: Update Arceus EV limitations 2019-12-24 01:35:45 +04:00
The Immortal
357005970e Grav Apple is boosted in Gravity
Closes #6209
2019-12-23 15:15:52 +04:00
The Immortal
f5eb722bbf Add Standard ND ruleset 2019-12-23 00:33:57 +04:00
The Immortal
ed725ab694 Implement Mimicry mechanics 2019-12-22 18:55:13 +04:00
SalamanderFire
994e646bac Fix Sparkly Swirl data (#6203) 2019-12-22 05:12:16 +04:00
The Immortal
dfcddf8351 Dynamax ends Illusion 2019-12-21 23:58:22 +04:00
The Immortal
85d8aefaaf Eternatus can't Dynamax
This effect (incorrectly) affects hacked Eternatus-Eternamax and is unneeded as Eternatus is unable to Dynamax into Eternamax.
2019-12-21 22:37:10 +04:00
The Immortal
c08d521547 More viable moves updates 2019-12-21 07:36:19 +04:00
Kris Johnson
0135d4f0c8 Take National Dex out of beta (#6195) 2019-12-21 06:11:41 +04:00
The Immortal
2695f5a8b8 Update viable moves 2019-12-21 01:08:56 +04:00
Guangcong Luo
12b49bb5e2 Fix G-Max move descriptions 2019-12-21 05:23:32 +09:00
The Immortal
5bb8dddad8 Delibird's hidden ability is released 2019-12-20 06:23:53 +04:00
Kris Johnson
dd016c21ff Add support in /details for Pokemon that require special trading conditions (#6194) 2019-12-19 20:38:05 +09:00
urkerab
80c45cdf27 Fix No Guard interaction with Perish Song and Tea Time (#6197) 2019-12-19 15:23:36 +04:00
The Immortal
a988a7f560
Fix crash
Remnant from c9af9eacce
2019-12-19 03:30:52 +04:00
The Immortal
ea4d20ab01 Random Battle updates 2019-12-17 05:03:06 +04:00
The Immortal
1548729c11
Prevent Eternamax in Challenge Cup 2019-12-16 05:54:37 +04:00
Kris Johnson
23fbcf747b Update the LGPE moves (#6178) 2019-12-16 05:50:31 +04:00
The Immortal
c9af9eacce Correct forme mechanics
New research shows that only Zacian-Crowned and Zamazenta-Crowned are unobtainable out-of-battle. So, reverting the validateForme changes and hardcoding it in BH instead of using Obtainable Formes.
2019-12-16 05:37:17 +04:00
The Immortal
1b44584e6e Entrainment fails against Dynamax 2019-12-15 03:14:26 +04:00
urkerab
56a0e37e3b Some Utility Umbrella fixes (#6180)
- Cherrim should revert if given a Utility Umbrella in Sun.
- Castform shouldn't keep transforming if it holds a Utility Umbrella.
- Leaf guard Utility Umbrella check works but is just inconsistent placement.
- Sun/Rain affected recovery moves should heal 50% with Utility Umbrella.
- Solar moves power should halve in sand or hail even with Utility Umbrella.
- Weather Ball should double in power if Magic Room blocks Utility Umbrella.
2019-12-15 04:05:25 +09:00
urkerab
1c102b12d0 Gigantamax forme change is client-only (#6181) 2019-12-13 19:21:37 +09:00
Kris Johnson
cb83dda418 Update Utility Umbrella (#6127) 2019-12-13 00:30:57 +09:00
The Immortal
fc4c185005 Refactor validateForme 2019-12-12 17:13:45 +04:00
Guangcong Luo
2aa440ebbd Add hint for Destiny Bond Dynamax interaction 2019-12-12 18:45:56 +09:00
Guangcong Luo
a062a6c96e Fix Custap Berry 2019-12-12 18:23:52 +09:00
Guangcong Luo
d91bad3365 Fix Quick Claw 2019-12-12 17:09:17 +09:00
The Immortal
b2c5b31e1d Random Battle updates 2019-12-12 04:43:31 +04:00
YaBoiJD
9a88d49a83 Fix Ditto from Dynamaxing as a Mega/Primal etc (#6139) 2019-12-12 00:14:47 +04:00
Kris Johnson
f1ad861659 Fix Necrozma-Ultra's inheritance (#6176) 2019-12-12 00:13:14 +04:00
The Immortal
0b044cf280 Skill Swap fails against Dynamax 2019-12-11 23:30:29 +04:00
Guangcong Luo
65187a9053 Improve Dragon Darts
This is not the best implementation and the animation/messages will be
wrong, but the mechanics should be pretty accurate.

Fixes #6085

Fixes #6086
2019-12-11 18:14:29 +09:00
Guangcong Luo
3b86164a77 Fix Quick Claw 2019-12-11 18:12:54 +09:00
Guangcong Luo
8e5fe17617 Fix G-Max Snooze/Replenish
Snooze applies even if the target is behind a Sub.

Snooze/Replenish only have a 50% proc chance.
2019-12-11 18:12:53 +09:00
Marty-D
1b3e577753 Ensure the Room Service holder is the source of the stat change
This matters for Clear Body, etc.
2019-12-11 02:29:48 +04:00
Guangcong Luo
6a4b5db15d Allow Volt Tackle Pikachu
Pikachu gets Volt Tackle by a really weird method, which PS never
implemented. This never mattered until now because PS would just assume
you had an event Pikachu, but with no event Pikachus available in Gen 8,
PS has been rejecting valid Pikachu sets.

This change makes it too permissive, but that's a better stopgap than
being too restrictive.
2019-12-11 03:41:38 +09:00
ZardMX
6cb0ca6299 Ice Face restores on switch-in when hail is active (#6147) 2019-12-11 03:11:42 +09:00
420Blazeitt
143ea606fd Fix type-changing moves & abilities while Dynamaxed (#6080) 2019-12-11 03:10:38 +09:00
The Immortal
c23a0c5d5b Obtainable Moves: Remove unnecessary ban 2019-12-10 19:17:05 +04:00
420Blazeitt
82d1f8ed92 SSB: dont let glitzer popping call gen 8 moves (#6171) 2019-12-10 17:32:18 +04:00
Lusamine
841f8cfab0 Correct Apple evolution methods for Flapple/Appletun (#6172) 2019-12-10 17:02:11 +04:00
Kris Johnson
89002124b3 Change inheritsLearnsetFrom to inheritsFrom and fix Necrozma-Ultra's inheritance (#6168) 2019-12-10 08:03:49 +04:00
The Immortal
26c11a20e8 Add test for Aura Wheel
And clean up the implementation.
2019-12-10 02:05:41 +04:00
The Immortal
23b692e0b3 Fix Dynamax messages 2019-12-09 23:53:04 +04:00
The Immortal
c2b8485ae3 OHKO moves fail on Dynamax
Closes #6165
2019-12-09 16:44:04 +04:00
asgdf
97d76831ea Fix Forretress not showing up in gen 2 randbats (#6164) 2019-12-09 16:29:17 +04:00
Kris Johnson
82dbf537e7 Make G-Max Centiferno/Sandblast mechanics more accurate (#6167) 2019-12-09 16:28:10 +04:00
420Blazeitt
a6117ac954 Gen 8 LC: ban Cherubi (#6166) 2019-12-08 22:13:18 -05:00
The Immortal
7dfc381e9b Leaf Blade + Sucker Punch Shiftry is legal 2019-12-09 05:16:46 +04:00
The Immortal
883ce3fa61 Fix formes in Hackmons Cup 2019-12-09 00:46:08 +04:00
The Immortal
a16c503b11 Random Battle improvements 2019-12-09 00:13:09 +04:00
The Immortal
29fdcc42cf Update Electric/Grassy/Psychic terrains 2019-12-08 22:35:07 +04:00
ZardMX
fa95878e7f Fix order of G-Max Tartness/Terror (#6163) 2019-12-08 21:01:33 +04:00
urkerab
0df06217ce Some Tea Time updates (#6156) 2019-12-08 17:44:24 +04:00
Kris Johnson
2854e71166 Fix various evolution methods (#6160) 2019-12-07 17:15:31 +04:00
Kris Johnson
3c321ca62e Fix G-Max Sweetness's short description (#6157) 2019-12-07 06:37:45 +04:00
Zachary Perlmutter
1e8551a71a Fix Eternatus-Eternamax (#6154)
* Fix bug caused by #6149
2019-12-06 14:10:10 +04:00
The Immortal
ede116418c Fix Gulp Missile
Closes #6155
2019-12-06 13:46:31 +04:00
The Immortal
d8bea75618 Update Power of Alchemy, Receiver, and Trace 2019-12-06 13:33:52 +04:00
The Immortal
600b54a9b1 Unaware ignores attacker's defense boosts
Relevent to Body Press.
2019-12-06 10:47:31 +04:00
The Immortal
0c5e7fb86b Update Copycat/Metronome exceptions 2019-12-06 10:01:01 +04:00
The Immortal
b586ae7188 Random Battle updates 2019-12-06 02:53:00 +04:00
The Immortal
f1530288e5 Move Keldeo-R validation to Obtainable rule
Keldeo-R is not a battle forme and is possible to hack without Secret Sword, unlike most other formes. It should be restricted by the rule that prevents hacks and not the rule that validates battle formes. This is mostly relevant for Hackmons.
2019-12-05 22:36:20 +04:00
The Immortal
534c984106 Cramorant, Eiscue, and Morpeko formes require their respective abilities 2019-12-05 22:03:58 +04:00
The Immortal
aa7421ff48 Psych Up & Transform fail against Max Guard 2019-12-05 18:21:02 +04:00
The Immortal
5de3015d35 Fix Heavy-Duty Boots interaction with Toxic Spikes 2019-12-05 18:11:35 +04:00
Zachary Perlmutter
6621444190 Prevent Eternamax Max HP Doubling (#6149) 2019-12-05 18:06:52 +04:00
The Immortal
6724ce500a Move Kyurem/Necrozma forme legality to Obtainable
Obtaintable Formes is for in-battle forme changes. Obtainable makes sure a team is possible to obtain in-game without hacking. Multiple Kyurem/Necrozma formes are the latter case.
2019-12-05 18:00:01 +04:00
whales
6aa04a842d Fix Pain Split (#6151) 2019-12-05 17:46:59 +04:00
The Immortal
4266000df4 Update forme validation
- In gen 8, Silvally is able to enter battles in different types if it doesn't have RKS System (i.e. it doesn't require a Memory).
- In gen 8, formes that transform in battle are no longer able to start in that forme (relevant to BH).
2019-12-05 07:29:15 +04:00
The Immortal
8f7c22feb0 Fix Gulp Missile
Gulp Missile shouldn't inherit the effects of the move that triggered it.
2019-12-05 03:35:21 +04:00
The Immortal
1ee6a3933d STABmons: Use `isMax` in validator 2019-12-05 03:13:09 +04:00
The Immortal
5ce9aa926d Disable fails against Max moves 2019-12-05 03:11:15 +04:00
The Immortal
c7bc102c5a Max happiness in gen 8 is 160 2019-12-05 03:01:59 +04:00
urkerab
01b6fcc4ca Improve GMax Centiferno, GMax Sandblast and GMax Sweetness (#6148)
- GMax Centiferno applies Fire Spin
- GMax Sandblast applies Sand Tomb behind Substitute
- GMax Sweetness cures despite Substitute or Sap Sipper
2019-12-05 02:21:13 +04:00
ZardMX
3cdebcc3a6 Add Obstruct in list of protection moves (#6124) 2019-12-04 10:32:22 -05:00
Guangcong Luo
a01e2a26bc Fix Darmanitan-Galar-Zen crash 2019-12-04 13:52:44 +09:00
whales
95afe1acc7 Octolock can't hit ghost types (#6137)
Co-Authored-By: Marty-D <Marty-D@users.noreply.github.com>
2019-12-04 13:36:01 +09:00
HoeenHero
fe6ee1339f Sort battle actions by order instead of priority (#6143)
This fixes the issues with priority moves in gen 8.
2019-12-04 12:56:50 +09:00
fart
d1f7dc0bce Snorlax-GMax Released (#6142)
https://serebii.net/swordshield/wildareaevents.shtml
2019-12-04 05:44:05 +04:00
Guangcong Luo
9b943fb62f Fix Dynamax stat handling
We now track `baseMaxhp`, the pre-Dynamax max HP. We also have a new
function `getUndynamaxedHP` for use by moves that use it (famously,
Endeavor).

- `baseStoredStats` is unused outside of the mouseover stats display.
  I updated its implementation to reflect this.

- Power Construct doesn't have a defined behavior during Dynamax. I
  ended up implementing an approximation of what it should probably do.

- Endeavor, Pain Split, Super Fang, and Nature's Madness now work on
  undynamaxed HP.

- Moves that deal or heal percentage damage now do it based on
  undynamaxed max HP, other than G-Max Finale.

Fixes #6131

Fixes #6087
2019-12-04 09:25:46 +09:00
The Immortal
8b19d099fb Random Battle updates 2019-12-04 01:12:48 +04:00
The Immortal
4f95f7adb7 Update Arceus/Silvally mechanics
Relevant to Hackmons, mostly.
2019-12-03 00:41:46 +04:00
The Immortal
198d8ac1ba Update LC banlist 2019-12-02 22:20:56 +04:00
Kris Johnson
9553a82506 Gmax Eevee, Meowth, and Pikachu shouldn't be LC/NFE (#6134) 2019-12-02 19:11:36 +04:00
The Immortal
a133a5b28b Fix 4b324e536
This reverts the other changes that were related to that commit.
2019-12-02 18:13:08 +04:00
Kris Johnson
953531cb6f Add inheritsLearnsetFrom property (#6133) 2019-12-02 21:15:48 +09:00
Guangcong Luo
24fe6b8781 Fix Mago/Wiki Berry descriptions 2019-12-02 17:25:40 +09:00
Guangcong Luo
8484c3312a Optimize Tar Shot 2019-12-02 15:10:56 +09:00
Guangcong Luo
4b324e536e Revert "Pokedex: Update formes"
This reverts commit 302f391381.

Fixes a bug in 77cca394bd
2019-12-02 13:56:54 +09:00
The Immortal
d9c49a2861 Team Preview: Hide items in gen 8 2019-12-02 07:02:19 +04:00
The Immortal
9a0258c128 Meltan doesn't evolve in Sw/Sh
Or even in Let's Go.
2019-12-02 05:02:22 +04:00
The Immortal
4b5c65ac98 STABmons: Prevent Max moves 2019-12-02 04:14:12 +04:00
The Immortal
4ebfac459e Random Battle fixes 2019-12-02 02:40:14 +04:00
The Immortal
c75da0f8f1 Random Battle: Update levels 2019-12-02 00:07:33 +04:00
The Immortal
867e0edfc8 Toxtricity is not tiered separately 2019-12-01 23:59:43 +04:00
The Immortal
6a14a8ed81 December tier update 2019-12-01 23:27:52 +04:00
The Immortal
6055be5624 Random Battle improvements 2019-12-01 21:45:30 +04:00
YaBoiJD
c6ccb747b5 Add 'Past' values for isUnreleased (#6128) 2019-12-01 23:11:20 +13:00
HoeenHero
5c75f0463c Dont turn status moves into G-Max Moves 2019-11-30 16:55:20 -05:00
420Blazeitt
f64bd4e9d3 Defog now removes terrains and G-Max Steelsurge (#6126) 2019-12-01 10:18:14 +13:00
YaBoiJD
546065a10d Update National Dex Mechanics (#6108)
Pokemon that are holding an Item that enables Mega Evolution, Primal Revision, or the use of a Z-Move cannot Dynamax. A Rayquaza that can Mega Evolve also cannot Dynamax.

Also fixes an alias loop with the national dex format/ruleset.
2019-11-30 14:50:09 -05:00
Quinton Lee
aa741c1e0a
Fix National Dex alias 2019-11-30 13:27:23 -06:00
Kris Johnson
1fe47eabdd Add Utility Umbrella (#6120) 2019-12-01 01:24:25 +13:00
Kris Johnson
9b6026af64 Update egg groups for Hawlucha, Bermite, Avalugg, Noibat, and Noivern (#6122) 2019-11-30 19:50:23 +13:00
The Immortal
96d9b16a6b Mix & Mega: Properly allow real megas 2019-11-30 06:15:19 +04:00
The Immortal
1053e80dac GSC: Move Feraligatr to NUBL 2019-11-30 05:37:24 +04:00
urkerab
61ca16f530 G-Max moves should run their effects against a substitute (#6110) 2019-11-30 10:17:10 +13:00
urkerab
4db904df6a Fix two issues with Magic Powder (#6113) 2019-11-29 19:52:49 +04:00
Spandan Punwatkar
97e910a093 National Dex: Ban Unobtainables (#6105) 2019-11-29 23:34:10 +13:00
The Immortal
acd111e7d3 Mix & Mega: Allow native megas 2019-11-29 13:20:35 +04:00
TheMezStrikes
b0dcf0d597 Fix NFE clause in battles (#6109) 2019-11-29 11:51:21 +04:00
HoeenHero
7957e74b75
Dynamic speed updates for Gen 8 (#6100)
In Generation 8, a Pokemon's speed updates dynamically. Meaning that it can move sooner than expected if its speed is modified by something such as tailwind or swift swim. This is different from past generations where the Pokemon's updated speed would only take effect the next turn.
2019-11-28 17:08:58 -05:00
Guangcong Luo
903c297b39 Fix Disguise descriptions
Fixes #6064
2019-11-29 10:06:20 +13:00
Guangcong Luo
cc1f13cf24 Fix G-Max Wildfire
(It does 1/6 damage and doesn't hit Fire types)

Fixes #6104
2019-11-29 10:02:33 +13:00
Spandan Punwatkar
3deb1c69c4 Dexsearch: Allow searching national dex (#6106) 2019-11-28 12:40:30 -05:00
Spandan Punwatkar
0e8ee00acb Add Eternamax forme for Eternatus (#6081) 2019-11-28 12:24:47 -05:00
Spandan Punwatkar
b6b66de896 Update Repo Links (#6102) 2019-11-28 12:47:38 +04:00
Spandan Punwatkar
d1f79e5108 Add alias for Drapion (#6101) 2019-11-28 18:19:23 +13:00
Guangcong Luo
b4ce0c32e3 Fix G-Max Finale again
Our newest research shows that it heals by 1/6 of max HP.
2019-11-28 18:16:02 +13:00
Guangcong Luo
1d2921eb8b Add Grass Knot Dynamax failure message 2019-11-28 18:16:01 +13:00
TZubiri
01dea52db9 Fix Disguise HP loss from 1/10 to 1/8 (#6094) 2019-11-28 15:48:47 +13:00
The Immortal
224465f6f7 Remove Moody Clause from Standard ruleset 2019-11-28 02:52:39 +04:00
ZardMX
00ea982c61 Add full desc for Max moves (#6098) 2019-11-28 11:02:33 +13:00
Marty-D
5390d4b402
Fix Dauntless Shield and Intrepid Sword 2019-11-27 11:30:21 -05:00
HoeenHero
661f52f2c3 Fix crash with Disguise in Gen 7 2019-11-27 08:35:51 -05:00
TheMezStrikes
650a8e49f0 Add aliases for max moves (#6079) 2019-11-27 21:54:29 +13:00
Spandan Punwatkar
599a6e39fc Add some Gen 8 aliases (#6069) 2019-11-27 18:57:17 +13:00
ZardMX
83ecf3984d Clarify doubles interactions for Max moves (#6076) 2019-11-27 18:56:48 +13:00
Guangcong Luo
c04898eab1 Remove Substitute upon Dynamaxing
Fixes #6089
2019-11-27 17:15:42 +13:00
Guangcong Luo
9777c2f344 Remove redundant zMovePower entries
(They're now filled in by the Move constructor.)
2019-11-27 17:15:42 +13:00
Guangcong Luo
4959b70c17 Fix G-Max Finale to be a draining move 2019-11-27 17:15:41 +13:00
The Immortal
bb2ec85564 Random Battle: Improve Avalugg 2019-11-27 04:48:24 +04:00
HoeenHero
7397aa9678 Jaw Lock trapping should end when one pokemon faints 2019-11-26 18:20:09 -05:00
The Immortal
e020334a78 Fix NFE Clause 2019-11-27 02:51:01 +04:00
The Immortal
36b0e6e6a5 Random Battle improvements 2019-11-27 01:57:43 +04:00
420Blazeitt
a10265cb0f Change the current Game Console (#6082) 2019-11-26 16:22:35 -05:00
The Immortal
951d9df6aa Zen Mode: Fix and remove duplicate code 2019-11-26 23:25:18 +04:00
The Immortal
302f391381 Pokedex: Update formes
- Remove prevo from in-battle formes
- Rename Darmanitan-Zen-Galar to Darmanitan-Galar-Zen and update the baseSpecies (this fixes its validation in gen 8 as well)
- Rename Mimikyu-Busted-Totem to Mimikyu-Totem-Busted and change its baseSpecies
2019-11-26 22:56:35 +04:00
420Blazeitt
7319f35ff1 Vice Grip -> Vise Grip in Learnsets (#6093) 2019-11-26 13:34:28 -05:00
HoeenHero
b2625ed70c Remove formeLetters
We don't use these at all currently and they are starting
to overlap. As discussed at the start of Gen 8 development
were removing them now.
2019-11-26 13:26:17 -05:00
HoeenHero
44a7fa0946 Make Dynamax checks more dynamic
Specifically we now check the battle.canDynamax method when
notifying a player about their pokemon's eligibility to dynamax.

This enforces the fact that pokemon that are transformed into
dynamax ineligible pokemon cannot dynamax themselves.

As a result of this change the pokemon.canDynamax flag is unnessecary
and has been refactored to a side.canDynamax flag. All pokemon specific
dynamax checks should use the battle.canDynamax method.
2019-11-26 13:05:38 -05:00
HoeenHero
c0c9bca26b Mark various berries as unreleased in Gen 8 2019-11-26 12:55:49 -05:00
PartMan
e4fbac0d29 Steel Beam hits one adjacent Pokemon (#6074)
Source:
https://pokemondb.net/move/steel-beam
https://pokemon.fandom.com/wiki/Steel_Beam
https://www.serebii.net/attackdex-swsh/steelbeam.shtml
2019-11-26 14:48:13 +04:00
PartMan
ec0ea11d82 Explain Gulp Missile (#6077)
Make Gulp Missile actually explain what it does. This implementation is a bit wordy, though.
2019-11-26 22:42:18 +13:00
ZardMX
c3211652c6 Fix Octolock not activating certain abilities (#6065) 2019-11-26 20:51:21 +13:00
supermii2
cf10a81985 Fix Ice Stone description (#6075)
Description reflects that it can evolve Galarian Darumaka into Galarian Darmanitan
2019-11-26 20:50:25 +13:00
The Immortal
767433dbb7 Fix Clangorous Soul 2019-11-26 01:41:49 +04:00
The Immortal
67870d344b Implement Punk Rock correctly 2019-11-26 01:20:31 +04:00
The Immortal
ac0f865d9a Rename NatDex Anything Goes
And add the thread link.
2019-11-26 00:11:18 +04:00
The Immortal
4110ead42b Fix VGC 17 & re-add US/UM Doubles UU 2019-11-25 20:58:14 +04:00
TheMezStrikes
4e43d64f2c Update format aliases for gen 8 (#6052) 2019-11-25 16:04:35 +04:00
HoeenHero
8792d7345f Most past gen items should still be illegal (#6066) 2019-11-25 22:00:12 +13:00
PartMan
265996a2b4 Shorten Ice Scales shortDesc (#6067) 2019-11-25 20:28:46 +13:00
Guangcong Luo
740004f23e Fix Moody shortDesc 2019-11-25 20:23:09 +13:00
The Immortal
cb98a190c9 Reduce G-Max Finale healing
Not sure what the exact ratio is but half is much closer to the correct value.
2019-11-25 07:22:54 +04:00
The Immortal
d9f3a24462 STABmons: Fix Galar Pokemon 2019-11-25 07:19:59 +04:00
The Immortal
50b7974f28 GSC: Move Pokemon to NUBL 2019-11-25 06:59:58 +04:00
The Immortal
7cccda3b18 Update Other Metagames 2019-11-25 06:53:08 +04:00
Guangcong Luo
5364c63e23 Introduce item.itemUser
`item.itemUser` replaces `item.zMoveUser`, and is a new field
representing a list of possible users of an item, for items that are
restricted to specific species.

`item.zMoveUser` is a base forme for items that affect every forme, and
a forme name otherwise (forme name is currently only used for
`forcedForme` uses).

Arceus is a weird case. Both generic Z crystals and Plates, while
having unique effects on Arceus, also have effects on other Pokémon.
For this reason, Arceus isn't listed as an `itemUser` of either of
these item types - use-cases that want this should also check
`item.forcedForme`.

This is mostly intended to be useful to move-searching and custom
rules (like NatDex, which will only allow past-gen items associated
with removed species).
2019-11-25 15:26:36 +13:00
The Immortal
eff4d957e7 NatDex: Add ruleset & sort OU banlist 2019-11-25 03:06:31 +04:00
Kris Johnson
562c042d28 Fix Gmax Pikachu, Eevee, and Meowth hidden abilities (#6063) 2019-11-24 19:51:54 +13:00
The Immortal
0f1d2b0b5c
Allow Stick in past gens 2019-11-24 06:29:14 +04:00
Guangcong Luo
ed10023df9 Fix G-Max Wildfire/Volcalith mechanics 2019-11-24 14:11:23 +13:00
HoeenHero
05aecec2cd Let Wildfire/Volcalith volatiles end naturally 2019-11-23 19:54:08 -05:00
urkerab
8502de49d8 G-Max Snooze shouldn't affect already statused foes (#6054) 2019-11-24 13:32:06 +13:00
HoeenHero
792396c391 Also fix G-Max Volcalith 2019-11-23 19:25:01 -05:00
HoeenHero
a16de0b698 Use pokemon arguments for G-Max Wildfire's effect 2019-11-23 19:08:34 -05:00
PartMan
d9cd828c0a Add Stick / Rename Vice Grip (#6046) 2019-11-24 12:00:42 +13:00
PartMan
0ed2874932 Clarify misleading move/ability descriptions (#6009) 2019-11-24 11:52:32 +13:00
ZardMX
6094cf5e4b Fix Clangorous Soul not showing up in /ms (#6053) 2019-11-24 10:58:30 +13:00
PartMan
a79bb072a4 Update moves' shortDesc (#6055) 2019-11-24 10:36:56 +13:00
PartMan
caaea5934b Make Max moves deal 25% through Obstruct (#6060) 2019-11-24 10:13:51 +13:00
Kris Johnson
b732a0f0a6 Add missing G-Max moves (#6045) 2019-11-24 10:13:15 +13:00
Kris Johnson
413b28b36f Fix lockedmove volatile interaction with Max moves (#6050) 2019-11-23 22:37:07 +04:00
TZubiri
68593cd168 Updated dark pranster immunity message for gen 8. (#6041) 2019-11-23 20:38:31 +04:00
The Immortal
e8461496ff Update CAP data
- Add gens
- Sort them by evolution family and re-number
2019-11-23 20:11:13 +04:00
Christopher Monsanto
f8fb992888
Restore Searing Shot to past gens (#6058) 2019-11-23 10:18:15 -05:00
The Immortal
f4234fd1ff Update unreleased hidden abilities 2019-11-23 18:54:18 +04:00
The Immortal
030a4f8394 Mr. Mime is available 2019-11-23 04:11:34 +04:00
Kris Johnson
d7d2e2868e Cramorant always changes to Cramorant-Gorging if its HP is 50% or less (#6043) 2019-11-23 01:20:56 +04:00
The Immortal
987d31f8e4 Implement Power Spot 2019-11-22 23:22:36 +04:00
The Immortal
240034d6fb Implement Steely Spirit 2019-11-22 23:17:13 +04:00
The Immortal
492f5ac7d5 Remove Moody Clause from Doubles ruleset 2019-11-22 22:38:57 +04:00
The Immortal
8eb6deb3a3 Bolt Beak & Fishious Rend double against switches 2019-11-22 22:35:40 +04:00
PartMan
9da9c99507 Eternabeam is one word (#6049) 2019-11-22 17:16:28 +04:00
HoeenHero
cd8b85b5a0 Fishious Rend is boosted by Strong Jaw
https://www.smogon.com/forums/threads/3655528/page-15#post-8288436
2019-11-21 20:42:24 -05:00
The Immortal
9c56269e3e
Steel Beam has 95 accuracy 2019-11-22 01:39:33 +04:00
The Immortal
0805535b40 Flag rest of the unusable moves as Past 2019-11-22 01:07:05 +04:00
The Immortal
f46923173a Update OM clauses 2019-11-21 23:54:57 +04:00
The Immortal
ebd501bb04 Update Dynamax messages 2019-11-21 18:01:32 +04:00
Kris Johnson
36eed8cca0 Fix Life Dew (#6044) 2019-11-21 13:46:16 +04:00
HoeenHero
52d8afcab2 Add Gulp Missile 2019-11-20 22:36:22 -05:00
Marty-D
20230d4b9f
Fix typo in Octolock removal 2019-11-20 21:14:06 -05:00
The Immortal
9e55c775b6 Random Battle: Fix Delibird and Salazzle 2019-11-21 03:56:24 +04:00
Jordan Shenfield
11b9c58d23 Fix Stuffed Cheeks (#6023) 2019-11-21 12:42:52 +13:00
The Immortal
4a06a92fd6
Court Change affects Tailwind 2019-11-21 03:08:54 +04:00
Guangcong Luo
744b25935d Dynamax moves are immune to Encore etc 2019-11-21 11:59:13 +13:00
The Immortal
7432ebcc92
Pyro Ball is a bullet move 2019-11-21 02:15:56 +04:00
The Immortal
bb370216e0 Set Gems to Past items 2019-11-20 23:23:05 +04:00
HoeenHero
10b8641465 Correct Max & GMax move targeting 2019-11-20 14:00:04 -05:00
HoeenHero
43b22a04fd Fix dynamax targeting in doubles 2019-11-20 08:55:25 -05:00
The Immortal
1aa1cc3042 Set Castform/Meloetta/Minior formes to Past 2019-11-20 16:01:06 +04:00
The Immortal
90e9d5bb56 Revert "Alolan Vulpix/Diglett are released in Gen 8 (#6035)"
And also part of de147756d that is not necessary.
2019-11-20 15:19:14 +04:00
Kris Johnson
72272356b8 Alolan Vulpix/Diglett are released in Gen 8 (#6035) 2019-11-20 22:48:12 +13:00
Kris Johnson
de147756d7 Mark Alolan formes as Unreleased (#6034) 2019-11-20 22:28:20 +13:00
Guangcong Luo
930540d04b Metronome can't call Dynamax moves 2019-11-20 22:06:21 +13:00
420Blazeitt
acbe8b8404 Cause G-Max Steel Surge hazards to be removed (#6026) 2019-11-20 12:51:57 +04:00
Kris Johnson
8370c488ce Fix the evolution method of new Pokemon (#5982) 2019-11-20 21:44:16 +13:00
Guangcong Luo
b97b426f26 Fix SSB crash 2019-11-20 21:43:01 +13:00
Kris Johnson
480a96998f Fix various LC tiers (#6033) 2019-11-20 21:39:56 +13:00
Guangcong Luo
4a3fd8717e Update Moody
Fixes #6027
2019-11-20 21:28:50 +13:00
Kris Johnson
755e76f253 Fix Tar Shot (#6029) 2019-11-20 20:42:07 +13:00
Guangcong Luo
621d55646a Don't change Ability for temporary forme changes
Fixes #6025
2019-11-20 20:23:05 +13:00
Guangcong Luo
86467ce1bd Fix Octolock
Fixes #5968
2019-11-20 19:53:29 +13:00
Quinton Lee
c3426bd934 Learnsets: fix typo in Roselia's learnset 2019-11-19 20:49:58 -06:00
The Immortal
97689e931a Add Dynamax Clause 2019-11-20 03:20:00 +04:00
The Immortal
426c013cae Add Gmax events 2019-11-20 03:04:16 +04:00
Guangcong Luo
09412bb570 Dynamaxed Pokemon can't be forced out
Fixes #6007
2019-11-20 11:31:27 +13:00
YaBoiJD
bc0d0174d2 Fix Mewtwo-Mega-X & Mewtwo-Mega-Y tiers (#6020) 2019-11-20 01:52:56 +04:00
The Immortal
464c67daa2 Random Battle improvements 2019-11-20 01:46:06 +04:00
The Immortal
6575dbe1f6 Implement G-Max Steelsurge
And remove the unneeded Dynamax checks from G-Max moves as they can't be used outside Gigantamax.
2019-11-20 01:45:32 +04:00
The Immortal
d4da290613 Yamper's ability is Ball Fetch 2019-11-20 01:13:37 +04:00
Guangcong Luo
9c970035e5 Fix "visegrip" spelling
Fixes #6010
2019-11-20 09:39:04 +13:00
The Immortal
0e358e0108 random6Pokemon: Use sampleNoReplace 2019-11-20 00:23:46 +04:00
The Immortal
74a2a3f7af Fix previous commit 2019-11-20 00:19:55 +04:00
The Immortal
f1662921e1 G-Max moves aren't real
They can't be hacked onto Pokemon.
2019-11-20 00:09:17 +04:00
The Immortal
068e5e7e8c Fix Sylveon events 2019-11-19 22:39:48 +04:00
The Immortal
ee5103dbf1 Set Blue/Red Orbs to Past items 2019-11-19 21:47:43 +04:00
The Immortal
ef53aae40c Destiny Bond doesn't affect Dynamax 2019-11-19 20:57:04 +04:00
The Immortal
d3dee35921 Revert egg groups addition for Megas
They don't exist so they don't have these updated egg groups that the base has.
2019-11-19 20:49:58 +04:00
The Immortal
19e832b5f7 Fix Let's Go Random Battle 2019-11-19 20:42:57 +04:00
The Immortal
a28aabdac7 Max Flare is 100 BP 2019-11-19 20:03:08 +04:00
ParthMan
eb97124c36 Update Egg Groups (Trapinch, Ralts lines) (#6017) 2019-11-19 19:56:38 +04:00
Parth Mane
95eace47f9 Update Intimidate Interactions (#6006) 2019-11-19 19:34:07 +04:00
The Immortal
e8dec9a44c random6Pokemon: Support limited Dex
Closes #5976
2019-11-19 18:44:36 +04:00
Christopher Monsanto
ccd0e34c33 Fix previous gen Gumshoos forme (#6014) 2019-11-19 17:31:54 +04:00
Kris Johnson
269886eab3 Fix Max moves' interaction with non-dynamaxed Pokemon (#6013) 2019-11-19 16:36:16 +04:00
The Immortal
2539d885ac Random Battle: Add Cursola and fix Cinderace 2019-11-19 09:32:58 +04:00
420Blazeitt
9ed1dec6bf Fix Max Move effects not activating against substitute (#5997) 2019-11-19 17:17:52 +13:00
The Immortal
a7f5ba92ca Update formats for gen 8 2019-11-19 08:05:42 +04:00
The Immortal
021be9c112 Pokedex: Remove Eternamax remnant 2019-11-19 05:18:54 +04:00
Kevin Lau
3e211e1ffa Random Battle: Update Greedent (#6002) 2019-11-19 04:32:58 +04:00
Alumn
e20d6c3db0 Fix Dragon Darts in Doubles (#6000) 2019-11-19 12:05:13 +13:00
The Immortal
d9a617b0e9 Correct Disguise descs 2019-11-19 00:14:36 +04:00
Nol
075cb04def Fix Spirit Break base power (#5999) 2019-11-19 00:02:58 +04:00
The Immortal
eb905cbe92 Implement Disguise damage 2019-11-18 23:58:00 +04:00
Alumn
7b55fbc537 Fix Tar Shot (#5995) 2019-11-19 05:25:14 +13:00
Nol
5fddc67576 Add dance flag to Clangorous Soul (#5989) 2019-11-19 04:58:34 +13:00
PartMan7
d648f3130e Update shortDesc with Intimidate interactions (#5996) 2019-11-19 04:53:13 +13:00
The Immortal
d86f84a470 Add tutor moves to SwSh starters 2019-11-18 16:13:12 +04:00
The Immortal
7f20f80c8c Add event Silvally 2019-11-18 16:08:39 +04:00
Kris Johnson
7c7d9d79a4 Remove Meowth-Gmax's learnset (#5993) 2019-11-18 18:23:12 +13:00
urkerab
2eec58ee10 Effects of (G-)Max Moves should not be secondaries (#5983) 2019-11-18 12:22:11 +13:00
The Immortal
fa3b306b33 Random Battle updates 2019-11-18 00:02:35 +04:00
Lusamine
173e1509c0 Fix Corsola-G's Speed (#5988) 2019-11-17 23:29:25 +04:00
PartMan7
69951a3fe2 Make Libero descriptions match Protean (#5986) 2019-11-18 08:14:17 +13:00
Guangcong Luo
6de97db219 TypeScript event handler types 2019-11-18 07:02:32 +13:00
Guangcong Luo
2601450517 Fix Ice Face 2019-11-18 06:23:24 +13:00
Alumn
a56270fee5 Make Pyro Ball viable (#5984) 2019-11-17 19:37:04 +04:00
The Immortal
224f9a3a39 Fix Ice Face 2019-11-17 19:35:38 +04:00
The Immortal
ed3a6e73aa Dynamax: Add hint on switch out
Dynamax has no actual text in Wi-Fi battles. I left the Start/End messages for now and just added a hint on Switch.
2019-11-17 19:09:27 +04:00
420Blazeitt
77e4d694b9 Disallow Vivillon formes in gen 8 (#5980) 2019-11-17 17:53:29 +04:00
The Immortal
b78c7a8ff8 Enable Ice Face mechanics 2019-11-17 17:51:39 +04:00
Guangcong Luo
4fc49bc7f9 Fix Body Press
Fixes #5975

Fixes #5979
2019-11-17 18:47:16 +13:00
Guangcong Luo
8565fd6d02 Don't let Gorilla Tactics lock into Max moves 2019-11-17 18:47:15 +13:00
Guangcong Luo
ab38ef82cd no-multi-spaces should be an eslint error 2019-11-17 18:47:13 +13:00
The Immortal
f93dbf3948 Clean up previous commit
The previous commit added `isNonstandard` where is wasn't required.
2019-11-17 09:44:23 +04:00
420Blazeitt
d9b07bf848 Disallow Arceus, Keldeo, and genesect formes to be used in gen 8 (#5978) 2019-11-16 22:59:38 -05:00
TapoCollino
ca392d979c Fix Max Guard damaging user (#5977) 2019-11-17 06:45:01 +04:00
The Immortal
a6bd62a51b Remove unneeded isUnreleased flags for LGPE moves 2019-11-17 05:33:37 +04:00
The Immortal
5b5750db68 Change Tea Time to Teatime 2019-11-17 05:24:13 +04:00
Guangcong Luo
5bedfe1905 Fix Gorilla Tactics
I'm not sure this is how it works, but it at least shouldn't make
dynamax moves auto-fail.
2019-11-17 13:44:22 +13:00
Marty-D
d2841edcfe
Correct Steam Engine boost 2019-11-16 17:33:33 -05:00
Alumn
bc745ed4fe Fix Jaw Lock and Strange Steam descriptions (#5972) 2019-11-16 17:09:00 -05:00
Kris Johnson
6355363be4 Fix Pikachu-Gmax's number (#5973) 2019-11-17 01:12:02 +04:00
The Immortal
34ccd2536a Lombre is NFE 2019-11-17 01:09:22 +04:00
The Immortal
b1b7157275 Update Random Battle levels 2019-11-17 01:06:03 +04:00
The Immortal
eba141fb94 Correct Magearna-Original tier 2019-11-17 01:05:48 +04:00
The Immortal
f3ae4bbec9 Pokedex: Fix typo 2019-11-17 00:20:45 +04:00
The Immortal
df45776a79 Lombre is not a tier 2019-11-16 23:51:11 +04:00
Guangcong Luo
6fb922930d Fix Toxel evolution 2019-11-17 08:47:41 +13:00
The Immortal
48eb3273fb Fix random6Pokemon crash 2019-11-16 23:44:08 +04:00
The Immortal
22daf5795d SSB: Inherit from gen 7 2019-11-16 23:24:48 +04:00
The Immortal
0ff1aa7e1c Fix Manectric events 2019-11-16 23:16:15 +04:00
The Immortal
57626ea484 Correct unreleased hidden abilities 2019-11-16 23:07:27 +04:00
Marty-D
35c4361762
Fix Court Change target 2019-11-16 13:54:26 -05:00
The Immortal
c1c9f9c376 Gen 7: Fix items mod
Sorted it as well.
2019-11-16 22:52:22 +04:00
The Immortal
5fde3799b8 Let's Go/Mix and Mega: Inherit from gen 7 2019-11-16 22:51:53 +04:00
Guangcong Luo
dcf12cec13 Fix Court Change 2019-11-17 07:45:57 +13:00
Guangcong Luo
cc84d1c4f1 Fix some Z crystals being allowed 2019-11-17 07:26:10 +13:00
Guangcong Luo
1082258f84 Clangorous Soul can self-target through Soundproof 2019-11-17 07:26:10 +13:00
Guangcong Luo
5b6771091d Choice items don't boost stats during Dynamax 2019-11-17 07:26:09 +13:00
The Immortal
c5bfbecbe0 Random Battle: Clean up 2019-11-16 21:41:51 +04:00
Guangcong Luo
e27233307f Display Dynamax as a volatile status 2019-11-17 06:32:20 +13:00
Guangcong Luo
0bb2e58efd Fix Dynamax move base power
Dynamax moves now have the correct base power, and now correctly only
deal 25% usual damage against Protect.
2019-11-17 06:32:17 +13:00
Guangcong Luo
41d957919b Update Tar Shot
- Fix description
- Give it 2x damage instead of 1.2x for now (we don't know the real
  value yet, but 2x seems more likely, and will be more fun anyway)
2019-11-17 06:32:15 +13:00
asgdf
f498a03da6 Fix Pokemon in pastgen randbats sometimes having no moves (#5970) 2019-11-16 21:25:41 +04:00
Marty-D
46baf9db2c
Dex: Add Hattrem height and weight 2019-11-16 11:01:30 -05:00
Marty-D
a21f8949f4
Dex: Update gender ratios 2019-11-16 10:39:45 -05:00
TheMezStrikes
37d6ba5e02 Add shortDesc to abilities (#5966) 2019-11-16 10:12:08 -05:00
HoeenHero
6253a77d3f Use level 10 dynamax power for HP changes 2019-11-16 10:02:12 -05:00
HoeenHero
7ac8663556 Add default BP for Gen 8 Max Moves 2019-11-16 09:53:53 -05:00
HoeenHero
34649c12ae Trigger dynamax switch out events sooner 2019-11-16 09:00:03 -05:00
HoeenHero
f28921d2d2 Do not go under 0 HP when dynamax ends 2019-11-16 08:48:17 -05:00
HoeenHero
a9f0f752d3 Fix choice lock - dynamax interaction 2019-11-16 08:44:31 -05:00
HoeenHero
fd46616a93 Max Move's categories should reflect the base move 2019-11-16 08:18:56 -05:00
Enrii
e057dd2c14 Fix move name for Grav Apple (#5964) 2019-11-17 02:13:54 +13:00
Kris Johnson
aba6615eca Fix Zen Mode (#5960) 2019-11-16 20:21:56 +13:00
Zakuree
9cdaf10d35 Fix Dragon Darts move name (#5959) 2019-11-16 20:19:01 +13:00
Guangcong Luo
5e6b17beac Fix Darmanitan-Zen-Galar 2019-11-16 20:04:08 +13:00
Guangcong Luo
04799f5c1e Restrict Z-crystals and mega stones to Gen 7 2019-11-16 20:00:53 +13:00
Enrii
5912ff317e Added shortDesc for new abilities (#5962) 2019-11-16 20:00:10 +13:00
The Immortal
d144de991a Random Battle fixes 2019-11-16 09:48:37 +04:00
The Immortal
de7c22bc86 Allow Double Iron Bash in Hackmons 2019-11-16 09:13:58 +04:00
The Immortal
645f5d48aa Fix Breaking Swipe 2019-11-16 09:10:34 +04:00
HoeenHero
6dc80978e3 Suppress strange error with SSB Z-Move checks 2019-11-16 00:06:01 -05:00
The Immortal
526ad4ce3a Past gens: Fix Jirachi legality 2019-11-16 08:59:38 +04:00
The Immortal
3bd93ca15e Fix Clangorous Soul 2019-11-16 08:57:45 +04:00
HoeenHero
c7d31804de Fix issues with Max Guard priority 2019-11-15 23:46:43 -05:00
Kris Johnson
d73f05dc0c Check if the target is Dynamaxed for weight moves (#5957) 2019-11-15 23:22:24 -05:00
HoeenHero
1f324ce065 Dynamax should bypass choice lock
While a pokemon is dynamaxed, they can use any of
their moves. Once it ends, they are locked back in
to the move they were originally locked into.
2019-11-15 23:09:18 -05:00
The Immortal
752e2b8537 Random Battle: Fix Virizion 2019-11-16 08:06:24 +04:00
Kevin Lau
f85f721319 Random Battle: Update Coalossal (#5956) 2019-11-16 08:04:52 +04:00
HoeenHero
8f1e5c917e Fix Shedinja's HP when dynamaxing 2019-11-15 23:03:20 -05:00
HoeenHero
e9a686e9e0 Comment out unsupported protocal, add placeholder 2019-11-15 22:49:44 -05:00
Kris Johnson
463c2a46a8 Fix Hoothoot's tier (#5955) 2019-11-15 22:44:55 -05:00
HoeenHero
e9edcb98ac Fix typo in Will-O-Wisp 2019-11-15 22:44:21 -05:00
HoeenHero
9e5f325902 Restrict gen 8 legendaries from Dynamax 2019-11-15 22:39:46 -05:00
The Immortal
544ab88b8d Fix new Pokemon gender 2019-11-16 07:20:00 +04:00
HoeenHero
e6a900702d Fix dynamax onSwitchOut 2019-11-15 22:17:59 -05:00
Kris Johnson
4bb2cc1ad6 Update Sirfetch'd's evolution condition (#5954) 2019-11-15 21:51:51 -05:00
Guangcong Luo
dae569ecc4 Fix Hatenna spelling 2019-11-16 15:40:24 +13:00
HoeenHero
9ecbcabee9
Dynamaxing (#5946) 2019-11-15 21:33:10 -05:00
420Blazeitt
84dc57aafe Add Fossils (#5953) 2019-11-16 06:31:47 +04:00
Kris Johnson
2c2084dbb7 Remove Eternatus-Eternamax (#5947) 2019-11-16 06:31:05 +04:00
Guangcong Luo
10062ece4f Fix Koffing/Weezing Gen 7 Abilities
PS apparently doesn't have gen-accurate Ability data for Pokémon in
Gen 3 that gained Abilities between Gen 3 and Gen 4 (like Pidgeot
still has Tangled Feet in Gen 3), but that will have to be left for
a future commit.
2019-11-16 14:39:14 +13:00
The Immortal
bb25774752 Update unreleased hidden abilities 2019-11-16 02:34:17 +04:00
Kirk Scheibelhut
f058731311 Fix typos in data/moves.js 2019-11-15 14:11:39 -08:00
The Immortal
1a90dc71db Fix Rusted Shield/Sword 2019-11-16 01:52:32 +04:00
The Immortal
556950bfda Update random6Pokemon to pick legal Pokemon only 2019-11-16 01:25:46 +04:00
Guangcong Luo
84fb8d5bb4 Fix some build crashes 2019-11-16 10:13:27 +13:00
420Blazeitt
a7e21f28e7 Fix certain Gen 8 Pokemon's stats (#5949) 2019-11-16 01:02:11 +04:00
The Immortal
ddf510c2a9 Random Battle updates 2019-11-16 01:00:19 +04:00
The Immortal
99a1cc220a Update Pikachu formes 2019-11-16 00:06:33 +04:00
Marty-D
5d6f610138
Dex: Touch up Crowned and Gigantamax forme names 2019-11-15 14:55:07 -05:00
Marty-D
22fb086cfb
Dex: Swap Amped and Low Key formes 2019-11-15 14:12:29 -05:00
Kris Johnson
72076e56c2 Fix Dragapult's species (#5948) 2019-11-16 07:59:06 +13:00
Guangcong Luo
801af59b98 Fix remaining build errors
- Centiskorch was misspelled in formats-data, causing a crash in the
  egg validator

- A few validation errors were due to Gen 6 not inheriting from Gen 7,
  Gen 7 not having a scripts file, and Gen 8 having a gen of 7

- Intimidate (Gen 7) wasn't inheriting from Intimidate (Gen 8), giving
  it no name, causing a few validation errors

  (Technically not a build error, but I also added Keen Eye to the list
  of Intimidate immunities, as reported by SadisticMystic.)

- A lot of tests relied on Teleport always failing; these have been
  switched to Gen 7 or swapped Teleport for Celebrate

- Inverse Mod suddenly stopped working; its implementation was a huge
  hack and I can't figure out what went wrong, so I've switched it to
	using the same system the other mod tests use. It's still a huge
	hack, but I don't have the free time to fix it right now.
2019-11-16 06:08:48 +13:00
The Immortal
68d73b77f0 Update new ability ratings 2019-11-15 20:15:23 +04:00
The Immortal
a0e94eb2ca RandomTeams mods: Shorten path 2019-11-15 19:50:17 +04:00
The Immortal
85356c3a43 Clean up data
- Add missing flags to FormatsData
- Remove unnecessary flags and data
- Remove unreleased abilities in past gens
2019-11-15 15:40:08 +04:00
The Immortal
1caf446e58 Move RandomTeams to gen 7 mod 2019-11-15 15:36:22 +04:00
Kris Johnson
a19ad51a20 Fix one part of the build (#5945) 2019-11-16 00:08:28 +13:00
Ezaphs
1608c2387e Add Gen 8 learnsets, Max and G-Max moves (WIP) 2019-11-15 22:02:38 +13:00
Kris Johnson
5447da1f1a Add Mew event 2019-11-15 22:02:30 +13:00
Kris Johnson
f91c7471c5 Add Gen 8 Moves 2019-11-15 22:02:24 +13:00
urkerab
e7aee8d9cc Some fixes to Gen 7 formats data 2019-11-15 22:02:24 +13:00
420Blazeitt
723e256aec Add Gen 8 Items 2019-11-15 22:02:15 +13:00
HoeenHero
5144fc32d7 Add Gen 8 Abilities 2019-11-15 22:01:54 +13:00
Kris Johnson
46ad0bccd7 Add Gen 8 Pokemon 2019-11-15 22:01:36 +13:00
TheMezStrikes
0c7f04356d Generalize NFE bans into validator rule (#5942) 2019-11-11 17:42:30 +13:00
urkerab
4ab68a3440 Refactor Toxic from Poison types against semi-invulnerability (#5930) 2019-11-06 19:51:22 -05:00
Waleed Hassan
92b2c128c2 Upgrade to TypeScript 3.7 (#5935) 2019-11-06 23:02:36 +10:30
Lusamine
2e09c83906 SSB: Namechange Akasianse to Felucia, promote Aeonic (#5932) 2019-11-05 13:27:15 -05:00
HoeenHero
762b04ea34 Update position when swapping in Wonder Trade
Closes #5931
2019-11-05 13:09:32 -05:00
pokemonvortex
bac81b59db Fix Blast Burn wording for consistency (#5927) 2019-11-03 10:50:09 -05:00
The Immortal
615f16c94d STABmons: Prevent unreleased moves 2019-11-03 05:36:53 +04:00
420Blazeitt
96cc1ed4f9 SSB: Bugfixes (#5922) 2019-10-31 09:16:53 -04:00
Marty-D
ea5d9d70dd Gen III-IV: Correct Intimidate boost attribution 2019-10-30 19:36:03 -04:00
HoeenHero
dedc8e067c SSB: Fix issue where a side has no active pokemon. 2019-10-30 11:00:14 -04:00
HoeenHero
4ced391d6b SSB: Apply various updates 2019-10-30 10:39:20 -04:00
The Immortal
87cdf35dd5
Update RBY tiers 2019-10-28 17:49:03 +04:00
YaBoiJD
149e0afac8 Add "ndm", "ndw", and "unecro" aliases for Necrozma formes (#5909) 2019-10-25 13:11:18 +10:30
HoeenHero
074b78be71 SSB: Improve Wonder Trade's interaction with Super Illusion 2019-10-24 21:56:07 -04:00
Kris Johnson
eeccd322ed Add "nidok" and "nidoq" as aliases for Nidoking/Nidoqueen (#5908) 2019-10-24 20:51:47 +10:30
urkerab
bae434e606 Add a single event for a move's own immunity to a specific target (#5904) 2019-10-24 11:00:28 +10:30
The Immortal
db1f2aa691 Remove Partners in Crime 2019-10-21 01:44:03 +04:00
420Blazeitt
74b3483da8 SSB: Fix Nap Time with existing status (#5836) 2019-10-20 08:55:03 -04:00
Marty-D
42a1ebe396 Add Shiny Tapu Koko event 2019-10-19 22:15:19 -04:00
Lusamine
6cc9212321 SSB: Correct Fat Rain descriptions (#5900) 2019-10-19 20:12:52 +04:00
Lusamine
f1ec1785b2 SSB: Fix Quick Reload to properly use Defog and then U-Turn (#5892) 2019-10-18 19:31:00 -04:00
420Blazeitt
b49de0960d SSB: Nerf Rach (#5889) 2019-10-18 19:26:08 -04:00
Lusamine
0053aa3adc SSB: Nerf Sundar (#5881) 2019-10-18 19:20:03 -04:00
Lusamine
880ebf2438 SSB: Fixes Pirate Princess's Tea Break vs Substitute (#5893) 2019-10-18 12:00:53 +04:00
urkerab
00d6e9d741 Fix activation of Defiant and Competitive when boosts are maxed (#5895) 2019-10-18 13:32:07 +10:30
urkerab
5b9d0c8db6 Centralise invulnerability checks for No Guard and Lock-On (#5894) 2019-10-17 22:32:44 -04:00
urkerab
3bfec7bf2f Rename TryImmunity to Invulnerability (#5877)
It's a check for semi-invulnerability rather than any sort of immunity.
2019-10-16 20:12:12 -04:00
The Immortal
a3233ee09c Random Battle: Fix Dragonite/Salamence 2019-10-16 16:01:59 +04:00
Lusamine
dcb438c041 Update vivalospride's and Rage's ranks (#5887) 2019-10-16 04:22:35 +04:00
The Immortal
756e21ff1b CC: Fix Necrozma 2019-10-16 00:50:55 +04:00
Guangcong Luo
92c0011b93 Fix HP Fighting Mega Latias validation 2019-10-15 21:00:40 +10:30
Guangcong Luo
e97bb7462a Fix healing move messages at full HP
Fixes #5885

Fixes #5746
2019-10-15 20:32:32 +10:30
The Immortal
773dcdc6f4 Random Battle: Improve Lycanroc & Bruxish 2019-10-13 20:36:38 +04:00
Lusamine
66966f40d0 SSB: Fix Jolteonite's description (#5874) 2019-10-12 15:47:45 +04:00
Marty-D
6030ca127d CAP: Nerf Equilibra
https://www.smogon.com/forums/posts/8253336/
2019-10-11 21:04:44 -04:00
Torracat
d3cd75ce8d SSB: Convert Distortion World to a Pseudo Weather (#5868) 2019-10-11 18:14:24 -04:00
Lusamine
2608ca74fc SSB: Buff Iyarito, rename signature move (#5870) 2019-10-11 17:19:47 -04:00
Torracat
baef9bcb77 SSB: buff Level 51 (#5869) 2019-10-11 17:19:19 -04:00
Lusamine
1145183ca0 SSB: Clarify Tipping Over short desc (#5862) 2019-10-11 17:09:33 -04:00
Lusamine
c3068e23de SSB: Fix typo in Volco's message (#5861) 2019-10-12 00:15:56 +04:00
Lusamine
6cbfe4c11a SSB: Buff ptoad (#5871) 2019-10-12 00:15:23 +04:00
Torracat
b27df882a2 Update Rory's quotes (#5872)
bad puns make the world go round
2019-10-12 00:15:06 +04:00
The Immortal
76db134959 Random Battle: Wigglytuff doesn't learn Memento 2019-10-11 23:09:51 +04:00
Alumn
eb083c46b8 Add a full ability description for Contrary + Simple (#5873) 2019-10-11 12:36:48 -04:00
The Immortal
6f78d6ec72 Random Battle: Fix Dhelmise 2019-10-09 05:26:24 +04:00
The Immortal
a57ee0bfed Random Battle improvements 2019-10-09 04:01:33 +04:00
Lusamine
1cbcb654c1 SSB: Update HoeenHero's rank (#5856) 2019-10-09 01:00:15 +11:00
Guangcong Luo
2adc80efe4
Improve egg validator (#5854)
Previously, we split gen 2-5 egg move validation into two phases,
`checkLearnset` where we searched for a valid father, and
`reconcileLearnset` where we made sure the father could learn the move
combination.

Egg move validation has now been completely moved out of these
functions and into `validateSource`, which calls `findEggMoveFathers`.

The new algorithm no longer requires `C` moves to be hardcoded into
`learnsets.js`, now doing a more thorough check validation for the
father's move combination. This should be slower than before, but
net performance should be massively improved due to two other
optimizations in this refactor:

- We no longer do any father-searching if the moveset can be obtained
  any other way - in particular, this means no more father validation
  in gen 6+ where all egg move combinations are legal anyway.

- We only check fully-evolved pokemon as fathers (because anything a
  prevo can learn, its evos can learn, too - yes, we remember to make
  exceptions for Salazzle, Combee, and future-gen evos)

In addition, `/learn` should now provide significantly better
information for egg move breeding, since it uses a more thorough check
instead of the validator's short-circuiting the moment it finds a valid
father.

This also improves some baby-only move validation, specifically fixing
the issue with Seismic Toss Charm Chansey.
2019-10-09 00:59:24 +11:00
Kirk Scheibelhut
691cf76de7 Fix EBC for external staleness via consumed Leppa 2019-10-05 15:41:18 -07:00
Guangcong Luo
7a023746ba
Refactor battle.dex out of battle (#5851)
In most other similar systems, like TeamValidator, we use `thing.dex` instead of having it extend `ModdedDex`. Battle has always extended `ModdedDex`, though. This changes Battle to match the others.

This should fix an issue with `Battle.data` not being cached.

This also frees up Battle to extend ObjectReadWriteStream<string> in a future update.
2019-10-06 07:38:08 +11:00
Torracat
86344e1de9 SSB: Properly update Snaq's health when switching out (#5837) 2019-10-05 14:55:31 -04:00
Torracat
ec388fd2d1 SSB: Trick Room & Alien Wave cancel eachother out (#5841) 2019-10-05 14:53:34 -04:00
Torracat
f088b25c83 SSB: Clarify Back Off's description (#5844)
The word "attacked" could mean that status moves can still work on it, which is not the case here.
2019-10-05 14:48:21 -04:00
Torracat
4be004510c SSB: Protect blocks Soup Stealing 7 star strike (#5848) 2019-10-05 14:47:52 -04:00
Guangcong Luo
3cd04c349e Fix missed conversions of validate -> obtainable 2019-10-06 04:32:23 +11:00
Guangcong Luo
71498d451d
New validator (#5840)
* Refactor validator

This is a major refactor intended to make the default rules easier to
understand, and also easier for OMs to bypass.

Removed rules:
- `Pokemon`: This is now `-Nonexistent`. Its previous name was intended
  to be interpreted as "simulate the Pokémon games exactly, and only
  allow what they allow". The new name should make it clearer that it
  mainly bans CAPs and other nonexistent Pokémon and functionality.
- `-Illegal`: This is now `Obtainable` (see below).
- `Allow CAP`: This is now `+CAP`. Instead of having a hardcoded rule,
  OMs can now be manually whitelist any pokemon/item/etc or group of
  them, overriding `-Nonexistent`.
- `Ignore Illegal Abilities`: This is now `!Obtainable Abilities` (see
  below).

`Obtainable` was previously `-Illegal`, and does the same thing: Makes
sure you have a regular Pokémon game with only Pokémon that can be
obtained without hacking.

But instead of being a ban, it's now a rule that does nothing by
itself, except contain more rules:
- `Obtainable Moves`
- `Obtainable Abilities`
- `Obtainable Formes`
- `Obtainable Misc`
- `-Nonexistent`
- `-Unreleased`

This allows OMs to piecemeal repeal and unban any of these individual
rules, instead of the previous approach of unbanning them all and
manually reimplementing every single validation you wanted to keep.

* Refactor PokemonSources into a class

This mostly just makes a lot of the weirder checks in the validator
substantially more readable.

This also renames `lsetData` to `setSources`, which should also help
readability.

* Validate Bottle Cap HP types

Fixes an issue reported here:

https://github.com/Zarel/Pokemon-Showdown/issues/5742#issuecomment-533850288

* Fix several move validation issues

Fixes #5742

We have a new MoveSource type: R for Restricted. R moves work like
level-up/tutor/TM moves, except you're limited to one R move.

- Shedinja move stolen from Ninjask in Gen 3-4 are now R moves instead
  of event moves. This allows them to coexist with Nincada egg moves.

- Necrozma-DW/DM now inherit moves/events from Necrozma (like Rotom,
  but with event validation). This allows them to be shiny.

- Pokemon can now get egg moves from their own evolutions. This fixes
  some Tyrogue, Charmander, and Treecko sets mentioned in #5742

- Some more C moves were added, fixing some Hitmontop and Chatot sets
  mentioned in #5742

* Improve ability/move compatibility validator
2019-10-06 04:21:30 +11:00
Kris Johnson
1d3fb35e9d SSB: Update Eien's rank (#5846) 2019-10-04 16:25:55 +10:00
Marty-D
236b9bc841 Fix Challenge Cup movepool generation 2019-10-03 22:19:58 -04:00
Marty-D
ee7e9fb66a Learnsets: Update Vivillon forms 2019-10-03 22:17:57 -04:00
Lusamine
7c7083b493 Add shiny Solgaleo/Lunala events (#5843) 2019-10-03 20:47:38 -04:00
urkerab
948257cce7 Change weight units to hectograms (#5765) 2019-10-03 14:00:16 +10:00
Lusamine
483839d1a8 SSB: correct Storm Assault OGs' description (#5835) 2019-10-01 22:37:35 -04:00
Marty-D
f8e933b7be Tiers: Update for October tier shift 2019-10-01 20:55:13 -04:00
HoeenHero
9a2c2adf82 Fix bad typing 2019-10-01 19:55:09 -04:00
HoeenHero
78a0fb0ad6 SSB: Update Inactive's Faint Message 2019-10-01 11:19:04 -04:00
Torracat
d977cc8aa4 SSB: Break Illusion on Scripted Terrain Corrupt (#5830) 2019-10-01 11:13:58 -04:00
whales
17fc8e5771 SSB: Fix rageee + beat up crash (#5829) 2019-10-01 11:12:08 -04:00
Lusamine
84b6ec486a SSB: Change Acid Rain so Steel/Poison retain immunities; Rewrite Corrosive Toxic (#5816) 2019-10-01 11:06:24 -04:00
The Immortal
ead81c7f79 Add new OMs of the Month 2019-10-01 16:20:02 +04:00
Honko
486a394d98 Gen 4 Random Battle improvements (#5828) 2019-10-01 16:11:28 +04:00
Lusamine
f78876640a Change Murky Ambush to only work on Physical attacks (#5825) 2019-09-27 23:03:18 -04:00
HoeenHero
3445da848a Move support for overwritting custom terrains to client.
This didnt work anymore anyways since setTerrain was moved from battle to field.
2019-09-27 22:53:49 -04:00
Lusamine
edada46463 Fix multiple places in SSB leaking Illusion (#5818) 2019-09-27 21:28:12 -04:00
Torracat
f9c50edf09 SSB: Fix OM + Illusion (#5820) 2019-09-27 13:14:20 -04:00
Lusamine
c8446e3c1f Fix SSB crash when Illusion copies Kay's innate ability (#5819) 2019-09-27 10:51:26 +09:30
Lusamine
a54e534b9b Fix SSB bug in Gracidea Mastery (#5817) 2019-09-26 17:05:05 +04:00
The Immortal
0e044687a6 Random Battle: Fix duplicate moves
Accidentally added in previous commit.
2019-09-25 22:40:53 +04:00
The Immortal
f005a5bfcf Random Battle updates 2019-09-25 17:14:39 +04:00
Lusamine
7dd2d2d18f Update SSB descs (#5813) 2019-09-25 08:07:07 -04:00
TheMezStrikes
da918d5e78 SSB: Akasianse is a girl (#5812)
I'm pretty sure I specified
2019-09-25 01:38:19 +02:00
Lusamine
edeb155448 Shorten descs, add speech (#5809) 2019-09-23 11:27:34 -04:00
HoeenHero
8723969e89 Fix Toxic Spikes in SSB 2019-09-22 22:29:35 -04:00
Torracat
e9ba49fb67 Ectoplasm should not bypass protect (#5808) 2019-09-22 22:02:59 -04:00
HoeenHero
c6e30cd2f4 Fix typo 2019-09-22 19:22:44 -04:00
Torracat
f29fcef26a SSB: Fix gz guishark (#5806) 2019-09-22 16:44:28 -04:00
HoeenHero
025d3e2f72 Fix Spikes in SSB 2019-09-22 16:39:35 -04:00
HoeenHero
7f7c2d9a95
Super Staff Bros Brawl Update (#5764) 2019-09-22 14:47:33 -04:00
The Immortal
dad61c43d5 Random Battle fixes 2019-09-19 21:21:32 +04:00
fart
007215d311 Update random-teams.js (#5793) 2019-09-18 05:17:52 +04:00
The Immortal
2b76546d84 Random Battle updates
In addition to various improvements, this commit removes unused LC and NFE random moves as they are outdated.
2019-09-18 02:12:42 +04:00
TheTiksiBranch
5550ef5155 Gen 3 Random Battle: Minor Move Generation Improvements (#5788)
* Gen 3 Random Battle: Minor Move Generation Improvements

* fix typo

* fix duplicate case
2019-09-17 17:50:34 +04:00
TheTiksiBranch
5451887047 Gen 3 Random Battle: Improve Movesets (#5787)
* Gen 3 Random Battle: Improve Movesets

* Revert removing Shadow Ball from Gengar
2019-09-17 17:49:39 +04:00
Lusamine
3d8b69f218 Add shiny Necrozma event (#5786) 2019-09-15 11:50:57 -04:00
The Immortal
de2e0e4ab7 CC: Fix multiple Hidden Powers Smeargle 2019-09-14 15:36:13 +04:00
The Immortal
5d5b82a689
Gen 1: Fix Omanyte in Random Battle 2019-09-13 15:09:33 +04:00
supermii2
f1de564999 Fixed a missing space in Grassy Terrain shortDesc (#5773) 2019-09-12 21:08:08 -07:00
Flametix
a374c6aa8b Fix typo in Gen 1 accuracy hint (#5771)
accurracy -> accuracy
2019-09-11 09:10:08 -07:00
The Immortal
b096c19aa9 Random Battle: Improve sets 2019-09-04 17:03:57 +04:00
The Immortal
eba65e878a Display abilities against Magic Guard
https://github.com/Zarel/Pokemon-Showdown/projects/3#card-23723659
2019-09-03 03:26:16 +04:00
The Immortal
2cf5ff1fcf Fix build 2019-09-03 02:32:18 +04:00
The Immortal
82e4217d46 Fix past gens Challenge Cup 2019-09-03 01:53:53 +04:00
The Immortal
44d637f7b1 Random Battle: Add sound move counter 2019-09-03 00:40:23 +04:00
The Immortal
e416b34129 Random Battle fixes 2019-09-02 04:58:35 +04:00
The Immortal
ada2e5ee46 Mergemons: Update bans 2019-09-02 01:24:45 +04:00
The Immortal
aba67d6db4 Random Battle: Add minimum speed for Life Orb 2019-09-01 21:16:54 +04:00
The Immortal
09311dba14 Fix Magician & Fling interaction 2019-09-01 20:46:18 +04:00
The Immortal
92d13b2463 Add new OMotM 2019-09-01 20:32:32 +04:00
The Immortal
26dfe8fd9e Revamp Random Battle
- New ability ratings
- Improve move pools
- Allow non-status moves to be re-rolled if rejected (this fixes all undesired move set combinations)
- Update move & ability rejections
- New item possibilities
2019-09-01 19:40:53 +04:00
Guangcong Luo
0fdaeea3db Fix spread move messages
In certain cases, a spread move that KOed an opponent would send an
incorrect message which could crash the client. This fixes that while
also simplifying the code.
2019-08-28 20:47:15 -05:00
fart
49416194db Add Celebrate Aerodactyl event (#5711) 2019-08-16 22:16:14 -04:00
Marty-D
196983430f Gen 3 OU: Add 3 Baton Pass Clause and ban Baton Pass Smeargle
https://www.smogon.com/forums/posts/8212796/
2019-08-16 21:39:06 -04:00
The Immortal
242b6bed9b Random Battle updates 2019-08-16 19:40:31 +04:00
Danofares
c7da0b1e82 Fix Toxic interaction with semi-invulnerable states (#5625) 2019-08-08 20:33:13 -04:00
Guangcong Luo
0cbb632521
Fix Blitz rule description 2019-08-07 10:54:52 -07:00
maxalexandderpi
e42cfac93e Update Blitz's description from 10s to 15s (#5681) 2019-08-07 09:22:21 +02:00
Marty-D
51932ab4f2
Linked: Fix crash 2019-08-04 15:59:42 -04:00
Ivo Julca
045fe45609 Linked: Make 2nd move autotarget when needed 2019-08-03 02:32:25 -05:00
Jacob McLemore
3af1c771c2 Fix Encore + Pledge moves interaction (#5641) 2019-08-01 20:31:38 -04:00
The Immortal
c285997991 Add August OMs 2019-08-01 18:53:43 +04:00
Kris Johnson
abe2ba1f5e UU: Allow Mimikyu (#5652) 2019-07-23 12:18:40 -05:00
ekmnoop
892551fc86 Fix alphabetization in data/moves.js (#5650) 2019-07-23 15:28:46 +02:00
ekmnoop
913395fa40 Fix alphabetization in data/moves.js (#5647)
sandstorm > sandtomb
2019-07-23 13:40:20 +02:00
Kirk Scheibelhut
57dd3b527f Add isPokeball field to Items data (#5644) 2019-07-22 16:20:09 -05:00
jmclemo6
e4ad7d894b Moves: Fix Flower Veil + Yawn interaction when ally is already under effect of Yawn 2019-07-21 14:21:42 -05:00
Jacob McLemore
cc69590c2e Fix Poison Touch interaction with self-targeting contact moves (#5640) 2019-07-21 10:24:46 -05:00
HoeenHero
bdfde21dae PU: Ban Guzzlord
https://www.smogon.com/forums/posts/8190551/
2019-07-21 09:50:11 -04:00
Danofares
5fb57e6cfc Don't show "It's a one-hit KO!" if move did not OHKO the target (#5637) 2019-07-21 08:29:30 -05:00
Kris Johnson
a1ccc6fe77 Gen 2 OU: Move Jynx/Golem to OU, Porygon2/Jolteon to UUBL (#5633)
https://www.smogon.com/forums/threads/3652655/
2019-07-19 22:20:10 -04:00
Guangcong Luo
3db1d9916c Deduplicate Template definition
It turns out Template is the only remotely-easy type to merge the class
and interface for.

The others all have a bunch of event methods which would need to be
redefined on the class.
2019-07-19 18:20:42 -05:00
Jacob McLemore
293867eb1c Pokedex: Correct evolution condition for Happiny (#5632) 2019-07-19 10:51:27 -05:00
Marty-D
4c1ee02de6
Gen 3 OU: Move Moltres to OU and Raikou to UUBL
https://www.smogon.com/forums/threads/adv-tier-changes-moltres-raikou.3652636/
2019-07-18 19:27:36 -04:00
Kirk Scheibelhut
875b02c816 Make Blitz/VGC Timer 'Rule' instead of 'ValidatorRule' 2019-07-17 12:14:35 -07:00
Jacob McLemore
bd55178ee8 Moves: Fix Psych Up's interaction with Focus Energy and Laser Focus (#5621) 2019-07-17 09:22:53 -07:00
Jacob McLemore
ed4b027b5b Update ts-ignore comment in Dancer codepath in scripts.js (#5619) 2019-07-16 20:52:17 -07:00
Jacob McLemore
7e4ebe44aa Make moves called by Dancer target properly (#5616) 2019-07-16 21:15:05 -04:00
Guangcong Luo
0cc534092a Support timer rules 2019-07-16 16:03:02 -05:00
Kirk Scheibelhut
d8dc151859 Fix dei -> di Japanese alias romanization 2019-07-15 10:18:12 -07:00
Kirk Scheibelhut
aea0d09cac Correct romanization in Japanese aliases 2019-07-10 19:50:06 -07:00
Marty-D
21a0d80d6a Gen I-II: Actually fix TOX -> PSN display 2019-07-09 21:25:16 -04:00
Marty-D
b3b553cfbd Gen V: Prevent illegal Huntail move combination 2019-07-09 21:23:07 -04:00
Guangcong Luo
413bf26d0d Correct .tier/.isNonstandard for future gens
Fixes #5243
2019-07-09 06:31:42 -05:00
Guangcong Luo
b1891ab6d4 Gen 1-2: Fix TOX -> PSN display
Because the TOX -> PSN change happened onSwitchIn, it wouldn't display
correctly on the first switch after TOX, requiring two switches to
display correctly.

This corrects the change to onBeforeSwitchIn, where it will display
correctly for the first switch.
2019-07-07 03:08:07 -05:00
urkerab
6155639fbc Fix Pickup/Recycle of Terrain Seed while terrain is up (#5594) 2019-07-06 21:19:31 -05:00
Marty-D
89deb387fb Add CAP 25 prevos 2019-07-06 20:24:56 -04:00
Marty-D
d2a84586a3
PU: Quickban Cinccino and Mega Abomasnow
https://www.smogon.com/forums/posts/8175322/
2019-07-05 19:48:53 -04:00
Kirk Scheibelhut
23ebc12a57 Fix last-slot Zoroark in random team generation 2019-07-01 13:17:43 -07:00
Marty-D
6c26bf68dc Tiers: Update for July tier shift 2019-07-01 15:52:04 -04:00
Kirk Scheibelhut
a61c10eeb8
Remove hardcoded URLs in favor of Config.routes (#5557) 2019-07-01 10:19:21 -07:00
Marty-D
f722ec9846 RU: Ban Linoone
https://www.smogon.com/forums/posts/8170548/
2019-06-29 18:56:35 -04:00
Kirk Scheibelhut
b6aad4eed0 Rework random teams to only perform 2 iterations (#5558) 2019-06-28 19:53:38 -07:00
Marty-D
208c22ad72
Fix multi-hit moves against Berserk/Emergency Exit/Wimp Out too 2019-06-27 17:01:36 -04:00
Kirk Scheibelhut
8fe6d89d14 Make sure randomly generated monotype teams are actually all one type 2019-06-27 12:10:03 -07:00
Kirk Scheibelhut
d279a95829 Ensure random team generation always ends up with 6 Pokemon (#5556) 2019-06-27 10:23:25 -07:00
Marty-D
605ce563ca
Fix Berserk/Emergency Exit/Wimp Out damage detection 2019-06-27 08:29:46 -04:00
The Immortal
9f8e20da8e Random Battle: Fix Monotype teams
And remove unused item selection.
2019-06-25 22:28:57 +04:00
Marty-D
c1dde231a9 CAP: Nerf Aurumoth 2019-06-25 10:23:06 -04:00
Marty-D
f65fe2c049 Don't stop moves before the first hit while asleep
The point of this check was to end a multi-hit move if you fell asleep to Effect Spore in the middle of the move, not be applied to every move (i.e. Doom Desire and Future Sight).
2019-06-22 20:38:47 -04:00
Marty-D
4b62546ab4 Fix Equilibra's gender 2019-06-20 14:16:50 -04:00
Marty-D
4e4d4725f9 Add CAP 26 Equilibra 2019-06-20 13:54:03 -04:00
Marty-D
611fab25a6
Fix Knock Off power against targets holding the user's species-specific items 2019-06-19 16:37:35 -04:00
Marty-D
591f4aa0ed NU: Ban Vileplume
https://www.smogon.com/forums/posts/8160298/
2019-06-17 10:19:25 -04:00
HoeenHero
a029157138 Gen II: Send Rest message while asleep for tracking sleep turns (#5537) 2019-06-14 09:04:11 -04:00
Marty-D
1671fe4e15
Fix Doom Desire/Future Sight on hit 2019-06-11 10:57:29 -04:00
asgdf
d12dc87c84 Fix Reflect Type interaction with typeless targets on client (#5533) 2019-06-11 09:25:06 -04:00
The Immortal
e8eaa319a7 Random Battle: Improve Cloyster 2019-06-10 16:55:32 +04:00
The Immortal
dbb0f0306b Gen 5 Random Battle: Fix Meloetta 2019-06-10 16:54:50 +04:00
Kevin Lau
09b6eba829 Random Battle: Update Heliolisk (#5523) 2019-06-10 16:25:14 +04:00
Danofares
8924245f5a Fix typo in Purify's shortDesc (#5529) 2019-06-09 12:59:05 -07:00
Marty-D
83845927ed
Gen IV: End Healing Wish and Lunar Dance's effects properly 2019-06-07 15:44:27 -04:00
Marty-D
e4574c4efb
Fix type-changing moves that rely on held items 2019-06-06 16:58:16 -04:00
urkerab
9abb7f11ab Don't share self-replacing abilities (#5526) 2019-06-05 16:39:58 -05:00
Marty-D
88400207ec
Tiers: Add June quick drops 2019-06-01 14:17:03 -04:00
The Immortal
878dde6bdc Update Other Metagames for June 2019-06-01 19:22:52 +04:00
Kirk Scheibelhut
db66195c26 Remove additional toID calls (#5503) 2019-05-23 18:11:26 +01:00
Marty-D
f8ad77f943 Gen IV: Add Soundproof description 2019-05-21 13:10:36 -04:00
Marty-D
bde086c600 Add Shiny Tapu Fini event 2019-05-21 13:09:29 -04:00
Marty-D
e2a2983050
Gen I: Fix multi-hit move damage against substitutes 2019-05-20 11:09:51 -04:00
Marty-D
c5ed893dc8
Tiers: Mega Tyranitar is actually OU by usage 2019-05-20 11:03:03 -04:00
Guangcong Luo
01804f988e Fix spread hit animation
Properly fixes https://github.com/Zarel/Pokemon-Showdown-Client/pull/1267
2019-05-16 12:52:13 +04:00
Guangcong Luo
7436c1f0f2 Remove import = and export =
`import =` and `export =` are really only intended for backwards
compatibility with CommonJS. While I really don't like the new module
system TC39 has designed for us, it's what we should be using, and
consistency is important.
2019-05-16 01:27:07 +04:00
Jacob McLemore
0ae5f842d3 Fix Fusion Bolt and Fusion Flare's interaction with each other (#5493) 2019-05-14 15:49:51 -04:00
Kirk Scheibelhut
9fb516a2a4 Update reference to EBC spec 2019-05-13 16:25:49 -07:00
Kirk Scheibelhut
3d24166cdf toId -> toID
Closes #5479
2019-05-12 17:53:01 -07:00
The Immortal
8019aeec10 Random Battle updates 2019-05-12 18:31:56 +04:00
HoeenHero
562c021273 SSB: Fix self-switch that do no damage 2019-05-09 20:28:41 -04:00
Kirk Scheibelhut
aeafb34a96 Fix double [still] in Gen 1 (#5491)
Moves with the 'charge' flag add the 'twoturnmove' volatile which
already handles adding [still].
2019-05-09 12:18:12 +09:30
Kirk Scheibelhut
be82a3b817 Move -mustrecharge message to onStart (#5488)
This way it doesn't show up at the end of the turn or get added 3 separate times.

Fixes #5462.
2019-05-08 16:39:56 -04:00
Kirk Scheibelhut
29430984f6 Only add the '-status slp' message in statuses (#5486) 2019-05-08 11:52:44 -04:00
The Immortal
5ca2ddbbea Random Battle: Remove Water Spout Kyogre-Primal 2019-05-08 05:05:21 +04:00
Kirk Scheibelhut
a0734bde6f Redo Endless Battle Clause with a new specification (#5472) 2019-05-07 11:18:06 +09:30
The Immortal
2935344fcd Move Lilligant to PUBL 2019-05-06 22:12:52 +04:00
Marty-D
611ddbd6f2 Fix crash in Trump Card 2019-05-06 12:23:36 -04:00
Martin Chukwu
5fd1a5844a Gen 2 Random Battles: Removed illegal moves (#5473) 2019-05-05 01:33:09 +04:00
jetou
b2232aa96a Gen III-IV: Fix Knock Off/Rapid Spin interaction with Rough Skin (#5474) 2019-05-04 14:01:26 -04:00
Kirk Scheibelhut
10c744f733 Introduce an ID type to sim (#5468) 2019-05-04 13:13:12 +12:00
Marty-D
28e9de9879 RU: Unban Mega Sceptile
https://www.smogon.com/forums/posts/8118368/
2019-05-02 13:54:11 -04:00
urkerab
508e58575e Other Metagames of the Month May 2019 (#5470) 2019-05-01 18:24:56 +04:00
Kirk Scheibelhut
df3d9b91ef Battle toJSON/fromJSON (#5427) 2019-04-30 14:48:27 +12:00
Marty-D
1ee999ff0c Fix Toxic Spikes interaction with Steel/Poison types 2019-04-27 15:50:31 -04:00
Kirk Scheibelhut
e632bd1991 Fixes crash in gen3doubles due to missing target (#5465)
Fixes #5654
2019-04-26 19:47:38 -04:00
Kirk Scheibelhut
3a366d0499 Fix Gen 2 TOX -> PSN crash (#5463) 2019-04-26 09:21:11 -07:00
Marty-D
78cae4c5f3
STABmons: Allow a normally illegal Shiftry move combo 2019-04-26 11:02:06 -04:00
The Immortal
034b936219 Random Battle updates 2019-04-24 02:50:51 +04:00
Marty-D
75b92ab1dd
Fix Eject Button interaction with U-turn/Volt Switch 2019-04-23 16:50:05 -04:00
Kirk Scheibelhut
7e4929a39f Change protocol for '|split' message type (#5331) (#5332) 2019-04-22 09:20:47 +09:30
Jacob McLemore
5fffde1495 Gen II: Fix confusion interaction with self-destructing moves (#5460) 2019-04-21 19:20:30 -04:00
Marty-D
80619d62a5
Prevent multiple Eject Button activations from a single attack 2019-04-19 11:38:36 -04:00
Marty-D
9428d274cc Gen III: Improve Truant implementation 2019-04-17 16:36:25 -04:00
Marty-D
a3586f13a0
Correct Yawn activation timing 2019-04-16 09:22:07 -04:00
HoeenHero
3d45ebe62b SSB: Remove Bimp 2019-04-15 19:28:47 -04:00
The Immortal
ac38db2cd7 Gen 1 Randoms: Properly fix Omanyte
Not familiar with these...
2019-04-16 02:29:15 +04:00
Slayer95
cd82475d06 Fix misspecified event handler priorities (#5445) 2019-04-15 18:03:32 -04:00
The Immortal
99caab2e9a
Gen 1 Random Battle: Remove illegal moves 2019-04-16 01:58:16 +04:00
Marty-D
9b28525f4e Gen III: Correct Truant mechanics 2019-04-15 17:15:51 -04:00
Kevin Lau
74d24d8dce Random Battle: Update Mandibuzz (#5449) 2019-04-16 00:15:56 +04:00
Kris Johnson
5f44ed1260 Update Battle Factory OU, UU, and NU (#5351) 2019-04-15 20:56:53 +04:00
The Immortal
b0901e6fc9 Random Battle updates 2019-04-15 16:58:48 +04:00
urkerab
0133ba9bd6 Make Pokemon.moves a read only array (#5433) 2019-04-14 23:57:42 +09:30
The Immortal
3e735aa6ce Fix typo in previous commit 2019-04-13 18:18:53 +04:00
The Immortal
527c6fe82c Gen 5: Random Battle updates 2019-04-13 16:39:45 +04:00
Kris Johnson
eb6c438466 Battle Factory: Add tests for EVs, learnsets, and natures (#5397) 2019-04-13 04:40:00 +09:30
Marty-D
ad4f80ee67 Fix Anticipation interaction with Hidden Power 2019-04-11 14:01:23 -04:00
Guangcong Luo
a33fc11d26 Refactor Actions, RandomTeamsTypes to namespace
They were previously some weird interface where their actual types
were properties. I guess whoever wrote this was unaware that TypeScript
namespaces were designed for this exact use-case.
2019-04-10 19:58:56 +09:30
urkerab
8034198c87 Camouflage and Soak should fail if they don't change the type (#5425) 2019-04-09 08:18:07 -04:00
Marty-D
4652e9a0cb Fix Disable from Cursed Body durations 2019-04-08 17:20:32 -04:00
Marty-D
e93686b411 Gen IV: Fix Explosion/Selfdestruct interaction with no target 2019-04-08 17:16:51 -04:00
Marty-D
e5167babcf Fix Jump Kicks against no target 2019-04-08 17:15:05 -04:00
The Immortal
e1c389a182 Random Battle updates 2019-04-08 16:39:19 +04:00
Guangcong Luo
4c47af28aa Refactor moveHitData
This is actually three refactors:

- swap around thing:slot for slot:thing in MoveHitData
- add Pokemon#getSlot
- remove the ActiveMove class; it's back to being an interface
2019-04-06 19:10:45 +08:00
Kirk Scheibelhut
0efd71dfef Move Data.ActiveMove methods to Pokemon (#5416)
See #5415 for context - having these methods is unsafe and leads
to crashes because not all ActiveMoves are created through the
Data.ActiveMove constructor. Instead of Pokemon, these could
alternatively be static methods on ActiveMove (or the ActiveMove
class could be completely abolished and reverted back to an
interface), but #5415 will deal with ActiveMove long term, this just
fixes the crashes.
2019-04-06 13:14:50 +08:00
Marty-D
707239c897
Fix Fury Cutter 2019-04-05 16:33:46 -04:00
The Immortal
204997233e
Move Mega Sableye to UUBL 2019-04-05 23:58:01 +04:00
Kevin Lau
cd9694cd20 Random Battle Gen 3: Update ability selection (#5402)
This updates the gen to use the ability selection algorithm from future
gens, where it defaults to the highest rated ability if all are rejected.
2019-04-04 15:50:17 +04:00
MacChaeger
d3f1161b62 Fix Weakness Policy and Clangorous Soulblaze in doubles (#5389) 2019-04-04 18:51:27 +08:00
Kirk Scheibelhut
d938f7ff22 Fix LGTM alert in data/mods/gen4/random-teams.js (#5406) 2019-04-04 01:50:13 +04:00
Kirk Scheibelhut
272700f2b2 Fix crash from Gen 4 Custap Berry + Trump Card interaction (#5395)
Fixes #5393
2019-04-04 01:20:11 +08:00
The Immortal
bfa0394e93 Gen 4 Randoms: Update ability selection
This copies the ability selection from future gens where it defaults to the highest rated ability if all are rejected.
2019-04-03 21:14:01 +04:00
Merritty
b5a0644aa8 Ban Trapinch from LC (#5400)
https://www.smogon.com/forums/threads/usum-lc-trapinch-suspect-voting.3648825/post-8086522
2019-04-03 15:03:47 +08:00
Spandan Punwatkar
2978546982 Add alias for Regenerator (#5396) 2019-04-02 15:39:09 +04:00
force
e3e269956a SSB: update ranks and fix moves (#5380) 2019-04-01 22:12:19 -04:00
Marty-D
ac5c0a5760
Tiers: Update for April tier shift 2019-04-01 14:30:01 -04:00
The Immortal
ca20958a39 Remove Megamons mod 2019-04-01 19:27:03 +04:00
The Immortal
a864d38240 Random Battle updates 2019-04-01 19:05:08 +04:00
LegoFigure11
101e973ab9 BF: Update Marshadow (#5388)
Prevents fully Physical Marshadow from getting a Mixed Nature
2019-03-31 19:01:05 +08:00
Slayer95
6384964a10 Sim: Z Moves may only be disabled when all base moves are (#5387) 2019-03-30 18:14:53 -04:00
MacChaeger
b8aa1048e2 Don't display "But it failed!" on a success (#5386) 2019-03-30 15:38:48 -04:00
Kirk Scheibelhut
19bde75842 canZMove should not be set for disabled moves (#5384)
Fixes #5383
2019-03-31 00:24:56 +08:00
Slayer95
694cd47e7b Fix target resolution (#5363) 2019-03-30 22:34:44 +08:00
Slayer95
628f32e8fb Stricter type definitions for dex data (#5375)
BattleStatuses switched to PureEffectData
2019-03-30 22:31:04 +08:00
MacChaeger
5a4578420b Fix attacks failing if only their effect fails (#5373) 2019-03-29 22:48:15 +08:00
The Immortal
f786b14b4c Random Battle: Adjust Floette rate 2019-03-29 12:04:24 +04:00
MacChaeger
9472019e03 Fix Gear Up and Magnetic Flux (#5368) 2019-03-28 14:19:47 -04:00
Marty-D
40c2210bf0 Gen 4 OU: Ban Sand Veil
https://www.smogon.com/forums/threads/dpp-sand-veil.3648687/
2019-03-28 13:13:26 -04:00
The Immortal
8d56dad32b Random Battle updates 2019-03-28 21:06:55 +04:00
Alexander B
57701a5f04 Refactor OMs to use "m" property of Pokemon (#4957) 2019-03-28 22:28:35 +08:00
Kevin Lau
9c226c5556 Reject Magnet Pull on non-Earth Power Probopass (#5354) 2019-03-28 17:20:21 +04:00
Marty-D
95fcc86028 Add new event Pokemon
and release Oranguru and Passimian's Hidden Abilities
2019-03-28 08:32:45 -04:00
MacChaeger
905ed1e95c Fix multihit moves continuing after a KO (#5360) 2019-03-28 19:02:37 +08:00
Ivo Julca
ac4b94876b Sim: Refactor to use Battle#getAllPokemon() and Battle#getAllActive() 2019-03-26 23:18:19 -05:00
MacChaeger
6adc779a19 Fix doubled recoil (#5358) 2019-03-27 11:15:57 +08:00
MacChaeger
9a7ce3dedf Put side conditions on p1 and p2 in multi battles (#5341) 2019-03-27 11:00:36 +08:00
Kevin Lau
3790c2496a Random Battle: Fix odds of various forme differences (#5355)
Castform is moved to 1/3 odds because normal Castform isn't rolled.
2019-03-26 15:45:36 +04:00
MacChaeger
860900ac57 Fix AfterDamage event running on secondary effects (#5350) 2019-03-26 15:29:46 +09:00
MacChaeger
233ffd2cba Nerf Pikachu in randdubs (#5343) 2019-03-25 05:50:35 +04:00
JetOU
50222edbdb Fix LGTM alert
`Operands hasMove['hypnosis'] and hasMove['hypnosis'] are identical.`
2019-03-22 23:24:58 -05:00
Kirk Scheibelhut
9f5a727ad1 Pull Field out of Battle (#5333) 2019-03-23 02:52:12 +09:00
urkerab
e2beda76a8 Don't show failure when Stockpile ends after no boost (#5324) 2019-03-23 00:11:41 +09:00
The Immortal
1cade1340a Random Battle improvements 2019-03-22 03:02:41 +04:00
Kirk Scheibelhut
03b2c92cb1 Make isNonstandard specify reason for non-standardness (#5330) 2019-03-22 01:49:22 +09:00
Kirk Scheibelhut
4be90a0a28 Cleanup sim/battle.ts (#5325) 2019-03-22 01:25:12 +09:00
Marty-D
4854febb2e Gen I: Fix Leech Seed recovery 2019-03-21 09:26:24 -04:00
Kevin Lau
c070395f60 Random Battle: Update Blacephalon and Seviper (#5329) 2019-03-20 23:54:37 +04:00
Marty-D
3762c52dd8 Add Shiny Tapu Bulu event 2019-03-20 08:27:01 -04:00
Marty-D
b94b5038b5 Rulesets: Make Little Cup work for any gen 2019-03-20 08:25:57 -04:00
MacChaeger
a44f16c6e3 Fix pivot moves vs. Substitute (#5314) 2019-03-19 11:50:27 +09:00
Kris Johnson
4c57d85342 Move Houndoom to PUBL (#5318)
https://www.smogon.com/forums/threads/usum-pu-suspect-process-stage-5-5-voting.3648342/page-2#post-8071681
2019-03-19 11:35:30 +09:00
MacChaeger
47aadf9cc8 Fix spread modifier for gen 4 FFA battles (#5321) 2019-03-19 10:46:18 +09:00
Kris Johnson
f4300a8692 Add "(PU)" support for Gen 6 (#5316) 2019-03-18 22:50:48 +04:00
The Immortal
b0f9a9f493 Random Battle updates 2019-03-18 22:49:14 +04:00
MacChaeger
6ac8266696 Support 4 player battles (#5266) 2019-03-18 13:37:27 +09:00
MacChaeger
6c486409f4 Fix spread move effect order (#5216) 2019-03-17 23:30:08 +09:00
Marty-D
2d08a1ec61
Gen II: Improve boostBy 2019-03-17 10:03:01 -04:00
Kevin Lau
7ec830c790 Random Doubles Updates (#5311) 2019-03-17 16:20:24 +04:00
Marty-D
9315b8d4d8 Gen II: Cap stat boosting properly 2019-03-16 17:49:25 -04:00
Marty-D
39a8b4270e Fix Stealth Rock effectiveness during Delta Stream 2019-03-16 14:38:03 -04:00
force
b6a28d693d SSB: Bug Fixes & Update Names/Ranks (#5295) 2019-03-15 08:54:58 -04:00
Kevin Lau
fad0c5c8fd Random Battle: Fix Malamar (#5308) 2019-03-13 17:36:29 +04:00
Guangcong Luo
125ffcc633 Add NOT_FAIL, FAIL, SILENT_FAIL to battle
This replaces battle.NOT_FAILURE. The others aren't used anywhere yet,
but should in theory provide more readability than `null` and `false`.
2019-03-13 11:25:23 +09:00
Slayer95
7a7ad8453d Fix regressions in team generators (#5302) 2019-03-12 18:44:38 -07:00
Kirk Scheibelhut
e9ccc7ecd6 Fix Stadium mod's stat modification logic (#5301) 2019-03-12 13:52:32 -07:00
The Immortal
6c3bee2ae6 Random Battle: More improvements
- Remove Dragon Tail from Lugia and replace Aeroblast with Psychic in current gen
- Revert previous Spiritomb change and instead remove Sucker Punch + Pain Split
- Give current gen Heatran Magma Storm (+Firium Z)
- Give Castform-Snowy Life Orb over Icy Rock
- Remove Air Balloon from 2x Ground weak Pokemon
2019-03-12 18:27:11 +04:00
Ivo Julca
3686dcfe46 TS: ModdedDex#generateTeam() returns PokemonSet[] 2019-03-12 00:29:59 -05:00
The Immortal
91c1d661b9 Random Battle: Update Spiritomb 2019-03-12 00:16:51 +04:00
The Immortal
682cab6092 Random Battle improvements
- Update Castform sets
- Remove Psyshock from Hoopa-Unbound
- Allow Diggersby to get Choice Scarf
- Lower priority of Air Balloon selection
2019-03-11 23:15:46 +04:00
MacChaeger
a6d9afc356 Randbats: update Poliwrath (#5250) 2019-03-11 02:59:51 +04:00
MacChaeger
8fec7543ed Ensure that Genesect's forme matches its drive (#5296) 2019-03-10 16:22:43 -05:00
Kirk Scheibelhut
e634d9a7b9 Cleanup Side & Dex after .ts refactor (#5273) 2019-03-09 10:14:11 -06:00
Kirk Scheibelhut
a8903d2563 Cleanup stat naming and types (storedStats, StatNameExceptHP) (#5274) 2019-03-09 09:53:11 -06:00
Honko
fc95f6e7d9 Gen 4 Random Battle improvements (#5275)
Fix bad sets for Bastiodon, Infernape, Jirachi, Regirock, Snorlax, Steelix.
2019-03-08 23:57:43 +04:00
JetOU
85533ee3a0 Change forEach to for...of (#5269) 2019-03-08 11:24:58 -06:00
Kirk Scheibelhut
91993df916 Continue cleaning up sim/ after .ts refactor (#5267) 2019-03-08 07:29:04 -06:00
The Immortal
7653384d20 Random Battle updates
- Only give Porygon-Z Z-Conversion under the right circumstances
- Slightly reduce the rating of Download so Porygon gets Adaptability a bit more
- Improve Haxorus' movepool
- Remove unviable Genesect sets
- Allow U-turn as the only STAB on Genesect
- Improve Magearna's movepool (+Fairium Z)
- Don't reject Flash Cannon with Special setup
- Give Fairies STAB when they need it
- Set Shift Gear as a Speed setup move
- Change the Life Orb bulk requirement to match Focus Sash
- Reject Trick with Speed setup
2019-03-08 17:27:44 +04:00
Kirk Scheibelhut
4e74f766b8 Fix Gen 2 stat rollover hint (#5271) 2019-03-07 15:00:14 -06:00
Kirk Scheibelhut
295f7c6c9f Switch hints to use double quotes everywhere (#5261)
Also, have `Battle#hint` take Side per @urkerab's suggestion.

Followup to #5258, no functionality changes.
2019-03-07 09:34:14 -06:00
Kirk Scheibelhut
dc5255f7c8 Fix Gen 1 Substitute + self damage behavior (#5263) 2019-03-06 16:12:32 -05:00
Kevin Lau
9a2d94220c Random Battle: Reduce range of Pokemon that get Focus Sash (#5259) 2019-03-06 23:44:04 +04:00
Kirk Scheibelhut
a04d4da992 Add more hints to Gen 1 & 4, migrate others to Battle#hint (#5258) 2019-03-06 11:24:47 -06:00
Marty-D
f2d491db29 CAP: Remove Phantom Force from Necturine too 2019-03-06 10:36:56 -05:00
Kirk Scheibelhut
961b9882f5 Fix Gen 4 interaction between U-turn/Substitute/Intimidate (#5222) 2019-03-06 08:33:52 -05:00
Kirk Scheibelhut
247bb559d6 Fix minor Typescript bugs in dex-data.ts (#5255) 2019-03-06 07:12:26 -06:00
Kris Johnson
8373574337 CAP: Nerf Necturna (#5257) 2019-03-05 19:01:45 -06:00
Kirk Scheibelhut
137aaf1a99 Fix Gen 1 Jump Kick to be like Hi Jump Kick (#5256) 2019-03-05 17:59:44 -06:00
Kirk Scheibelhut
f1f903ceae Add hints for odd Gen 2 behavior (#5254) 2019-03-05 16:36:42 -06:00
The Immortal
81082c34ed Random Battle: Prevent multiple Z-Moves on a team 2019-03-06 01:24:59 +04:00
The Immortal
2443d16df2 Random Battle: Improve Physical Rock-types 2019-03-06 00:18:35 +04:00
Kirk Scheibelhut
6f82443101 Fix GSC Toxic interaction with Baton Pass/Heal Bell (#5226) 2019-03-05 13:28:01 -05:00
Marty-D
69f9c29a4d Fix Parental Bond interaction with Fury Cutter 2019-03-05 13:14:09 -05:00
Marty-D
b555e35d20 PU: Keep Houndoom during the suspect test
https://www.smogon.com/forums/posts/8059677/
2019-03-05 13:12:36 -05:00
MacChaeger
cfb1cf1731 Add a notice to the Inverse Mod (#5249) 2019-03-05 03:35:58 -06:00
MacChaeger
33a872e029 Gen 7: Stockpile tracks individual stat alterations (#5246) 2019-03-04 17:59:44 -06:00
The Immortal
2745f013c2 Add Type: Null to Random Battle 2019-03-04 18:29:13 +04:00
Marty-D
efc47bff54 PU: Add Houndoom suspect notice 2019-03-03 19:17:34 -05:00
Konrad Borowski
8289374460 Disallow non-standard Pokemon in Gen1/2 randbats (#5235) 2019-03-03 21:47:37 +04:00
Merritty
79bb4a24a0 LC: Unban Torchic (#5234)
https://www.smogon.com/forums/threads/torchic-has-been-freed.3647800/
2019-03-03 11:55:08 -05:00
Guangcong Luo
ce5a954ae2 Use array spread instead of Array.from 2019-03-03 08:47:08 -06:00
urkerab
9ebaa6877b Fix Protean and Color Change (#5233) 2019-03-03 04:40:35 -06:00
Kris Johnson
c2e21d6fea Fix crash in Anticipation (#5232)
A battle has crashed: TypeError: Cannot read property 'fainted' of null
at Battle.onStart (/home/ps/showdown/data/abilities.js:150:16)
2019-03-03 03:28:03 -06:00
Kris Johnson
575c4224f7 Fix Megamons and Chimera simplistically (#5229) 2019-03-03 00:27:12 +04:00
The Immortal
0bc1f96fc3 Random Battle: Improve Kyurem 2019-03-02 22:26:40 +04:00
Kirk Scheibelhut
6e122d5d74 Refactor lib/ to be native Typescript (#5217) 2019-03-02 11:12:24 -06:00
Kirk Scheibelhut
2fde28d0ee Remove FIXME's in gen1/gen2 random-teams.js (#5227) 2019-03-02 06:21:49 -06:00
Marty-D
2e32a8906c
Tiers: Add March quick drops 2019-03-01 15:02:30 -05:00
The Immortal
075da69253 Update Other Metagames 2019-03-01 17:27:26 +04:00
The Immortal
bf832a97f2 Random Battle fixes 2019-03-01 17:25:04 +04:00
Kirk Scheibelhut
aa81f2a2d8 Fix Shell Trap behavior with Encore (#5218) 2019-02-28 14:27:56 -05:00
Guangcong Luo
13accb33eb Fix crash in SSB import 2019-02-28 14:04:14 -05:00
Marty-D
f108ec0fba Update Psych Up and Transform interactions with crit rate effects 2019-02-27 12:45:09 -05:00
Lycanium Z
51cb39a599 SSB: Arrested -> Pablo; Fix Fake Claim & Sub Interaction (#5205) 2019-02-26 20:33:08 -05:00
Kirk Scheibelhut
b09fd63377 Refactor sim/ to be native Typescript (#5210) 2019-02-26 11:03:30 -06:00
Kirk Scheibelhut
623b349fc1 Fix Gen 1 bug involving last damage and Substitute (#2598) (#5211) 2019-02-25 21:24:14 -06:00
Kirk Scheibelhut
b8d650c261 Fill in Japanese aliases (#5209) 2019-02-25 19:50:10 -06:00
MacChaeger
bdf74b838a Pokebilities: Update Trace, Power of Alchemy, and Receiver (#5203)
* Pokebilities: Update Trace, Power of Alchemy, and Receiver

Now Trace copies a random ability from a random target, regardless of whether it was originally an innate or not

* Send correct target in message to client
2019-02-25 22:42:37 +04:00
MacChaeger
d764c52887 Don't add inactive rules as pseudoweathers (#5206) 2019-02-25 01:11:46 -06:00
Kris Johnson
da6f42c5c1 Change Untiered to (DUU) for Doubles (#5178) 2019-02-25 07:35:41 +04:00
The Immortal
bc1ff9fac4 Revert "Change (PU) to Untiered (#5170)"
This reverts commit d40fe510b4.
2019-02-25 06:26:21 +04:00
Marty-D
a483604687
Gen I: Stop trying to change a fainted Pokemon's stat stages 2019-02-23 21:29:36 -05:00
The Immortal
0d6300009d Random Battle: Properly increment tier counters 2019-02-24 06:18:45 +04:00
The Immortal
59c4965dfa Random Battle improvements 2019-02-24 06:00:24 +04:00
Konrad Borowski
03bd1b4df7 Mark Feebas's evolution in Gen4 as requiring high Beauty
Trade evolution for Feebas was introduced in Gen5.
2019-02-21 22:56:07 +01:00
The Immortal
f62b354483 Random Battle: Improve Toucannon 2019-02-21 15:41:40 +04:00
Guangcong Luo
64089636dd Simplify evo data representation 2019-02-19 23:46:55 -06:00
Guangcong Luo
46134ce5f6 Improve data representation of evo method 2019-02-19 23:42:06 -06:00
Jacob McLemore
bad622e1cd Add evolution method information (#5179) 2019-02-19 23:04:20 -06:00
Marty-D
8dfe58100d Learnsets: Fix Gen 4 tutor moves 2019-02-19 22:03:28 -05:00
Lycanium Z
cacc83043a SSB: Fix Evoblast interaction with substitute; update ranks (#5166) 2019-02-19 21:23:12 -05:00
Marty-D
2e6011fffd
Fix Chimecho's egg group 2019-02-18 21:25:49 -05:00
Kris Johnson
80b8356c29 Battle Factory: Fix Espeon's ability in RU (#5175) 2019-02-17 11:43:01 -06:00
Marty-D
17b3c037e1 Add Bottle Caps 2019-02-16 23:29:01 -05:00
HoeenHero
9c9004cacf Fix "Fix terrain seed activation timing (#5163)"
Shouldn't of reverted this so quickly. Credit to the code goes to @MacChaeger
2019-02-16 20:31:07 -05:00
HoeenHero
f8a1612906
Revert "Fix terrain seed activation timing (#5163)" (#5173)
This reverts commit 250955ee68.
2019-02-16 19:46:53 -05:00
Kris Johnson
630180fd1b CAP: Nerf Crucibelle-Mega (#5172)
* CAP: Nerf Crucibelle-Mega

* oops
2019-02-16 19:30:38 -05:00
MacChaeger
250955ee68 Fix terrain seed activation timing (#5163) 2019-02-16 19:30:00 -05:00
urkerab
9195822c37 Fix transformInto so OMs still work (#5165) 2019-02-15 17:52:20 -06:00
Konrad Borowski
a97b879e2d Prevent using Leppa Berry from triggering Endless Battle (#5158)
Previously, using Leppa Berry by itself caused Endless Battle Clause
to consider Pokemon to be stale. However, it is reasonable to use
Leppa Berry without an intent to cause an endless battle - for
instance to increase the PP of a move with a low PP.
2019-02-15 17:43:19 -06:00
Kris Johnson
d40fe510b4 Change (PU) to Untiered (#5170) 2019-02-16 03:07:51 +04:00
Russell Jones
fdcfcb02db Revamp evolution tables (#4997) 2019-02-14 23:51:17 -06:00
Kris Johnson
df764e971a Battle Factory: Remove unranked Pokemon and fix Snorlax (#5164) 2019-02-14 16:30:56 +04:00
Kevin Lau
8860c0e4e0 Random Battle: Update Rhyperior (#5162)
* Random Battle: Update Rhyperior

- Although Rock Blast is the preferred move in RU, there are notably
fewer Sturdy mons in Random Battle and it struggles more with breaking
Substitutes with it.
- Aqua Tail gives very minimal meaningful coverage since it mostly is
super effective on Pokemon already weak to Ground. Instead, give it Ice
Punch since it's much more common on it.

* Update formats-data.js

* Update formats-data.js
2019-02-13 01:22:59 +04:00
The Immortal
2e0be4ce67 Random Battle improvements 2019-02-12 17:25:49 +04:00
Marty-D
44310dd140 NU: Ban Vanilluxe 2019-02-11 21:07:55 -05:00
Guangcong Luo
b498bb222c Require object literal method shorthand 2019-02-11 18:14:09 -06:00
Kevin Lau
df09b719c3 Random Battle: Update Probopass (#5159)
Earth Power is one of its most used moves because of Steel trapping with
Magnet Pull, while Pain Split is almost unheard of in standard tiers,
and isn't very useful on it unless it has Sturdy (but Magnet Pull is the
better move and is rated higher)
2019-02-11 22:57:54 +04:00
Kris Johnson
1801271f6b Battle Factory: Update RU and LC (#5143) 2019-02-06 15:04:55 -05:00
Guangcong Luo
8ff241906d Check capitalization in Factory sets
This might be debatably important, but if it's worth pointing it out
in reviews, we might as well automate it.
2019-02-06 10:40:10 -06:00
Marty-D
c5efdf6cbe RU: Ban Stakataka 2019-02-06 08:49:27 -05:00
MacChaeger
205a753544 Pokebilities: fix special abilities as well as Gastro Acid (#5140) 2019-02-06 16:30:14 +04:00
DubbleClick
0a864e84d8 Fix some LGTM alerts (#5139) 2019-02-05 20:34:32 -06:00
Guangcong Luo
f3e45fbb72 Move server code to server/
Also move mods/ to data/mods/

This makes PS more monorepo-like. The intent is to further separate
the sim and the server code, but without fully committing to splitting
the repository itself.

We now support `./pokemon-showdown start` in addition to
`./pokemon-showdown`. I'm not clear which I want to be the default
yet.
2019-02-03 16:07:06 -06:00
Marty-D
008dfbdd8a
Update Me First 2019-02-02 16:13:03 -05:00
Guangcong Luo
8d57bd1b8c Remove useless param from pokemon.transformInto
Introduced in 743c85127c
2019-02-01 15:10:46 -06:00
Marty-D
4ceb8101fc
Update Trick Room's short description 2019-01-30 12:02:13 -05:00
Marty-D
4fc130a9ac
Battle Factory: Fix another Hydreigon set 2019-01-29 09:12:39 -05:00
Marty-D
e21f3e02a8 PU: Ban Alolan Exeggutor 2019-01-28 15:08:57 -05:00
Marty-D
16eb789ba9 Battle Factory: Split UU Hydreigon sets 2019-01-28 15:05:37 -05:00
Kevin Lau
3cb9bb0627 Random Battle: Fix Dedenne HP EVs (#5122) 2019-01-26 14:46:43 +04:00
Russell Jones
e4923a08d5 Use more accurate multiplier for Big Root (#5120) 2019-01-25 10:39:58 -05:00
TheMezStrikes
763794a18a 2v2 Doubles: Update banlist (#5116) 2019-01-24 16:28:10 +04:00
Kris Johnson
629ffb88c8 Add Untiered as a Doubles tier (#5112) 2019-01-22 18:59:50 -06:00
Marty-D
e4a4762822 RU: Ban Meloetta 2019-01-20 10:26:22 -05:00
urkerab
768f6f6a21 Electrify shouldn't affect Struggle (#5115) 2019-01-20 10:22:48 -05:00
Kevin Lau
30a7e7a094 Random Battle: Reject Pursuit if 3 Dark moves (#5111)
Fixes Skuntank (Pursuit/Sucker Punch/Crunch) and Spiritomb (Pursuit/
Sucker Punch/Dark Pulse) among others.
2019-01-17 18:54:16 +04:00
Marty-D
891f4d202a
Update Emergency Exit and Wimp out descriptions 2019-01-16 13:56:02 -05:00
Marty-D
d1b286680e Update Celebrate calling restrictions 2019-01-16 13:52:25 -05:00
Marty-D
a0a81519ca Update Zen Mode 2019-01-16 13:42:18 -05:00
Guangcong Luo
570c9858af Add hint message for Roost 2019-01-15 22:11:14 -06:00
MacChaeger
2a60ad7589 Fix stomping tantrum vs. only Protect (#5081) 2019-01-15 22:03:54 -06:00
asgdf
9b4c42cc8f Fix partial trapping moves in the statbar after having ended (#5108) 2019-01-15 19:25:46 -06:00
Alexander B
73a158631e Desolate Land activates before Dazzling (#5107) 2019-01-15 11:05:32 -06:00
Russell Jones
d35aeb0b23 Trying another fix for Fake Out (#5103) 2019-01-14 09:52:04 -06:00
urkerab
554060b0b5 Rename crash damage back to (High) Jump Kick (#5104) 2019-01-13 21:46:10 -06:00
urkerab
fa4442cb7c Fix Fairy Lock (#5101) 2019-01-13 13:22:35 -06:00
Kevin Lau
c579e4ae85 Random Battle: Lower Keen Eye rating (#5098)
Fixes Drapion, who has 3 different moves with a rating of 1. Keen Eye is
less useful than Battle Armor or Sniper because of a lack of accuracy
reduction moves in random battle, so this ensures that it is not chosen.
2019-01-13 22:16:19 +04:00
The Immortal
0be83d1706 Revert "First-turn-only moves should be blocked if you used a Dancer move immediately after switching in (#5090)"
This reverts commit 7e6148b8c4.
2019-01-13 21:56:40 +04:00
Quinton Lee
0cc9b78094
Remove unnecessary Pokestar alias 2019-01-12 16:54:54 -06:00
The Immortal
dc7d98adf2 Random Battle: Fix Psychic and Normal types
Fixes #5095
2019-01-12 23:28:00 +04:00
Russell Jones
7e6148b8c4 First-turn-only moves should be blocked if you used a Dancer move immediately after switching in (#5090) 2019-01-11 15:29:35 -06:00
Marty-D
8afef5853b
Quickban Minior from PU
https://www.smogon.com/forums/threads/pu-tiering.3611938/#post-8009550
2019-01-11 10:40:09 -05:00
The Immortal
37381e3ff1 Random Battle: Improve Malamar 2019-01-10 18:44:54 +04:00
Kris Johnson
10fd960dbb Fix Doubles Tiers for NFE Pokemon (#5082) 2019-01-09 20:45:46 -06:00
Marty-D
4b0c3679de
Copy Chansey's illegal move combos to Blissey 2019-01-08 08:32:29 -05:00
Marty-D
5d06968819 Release Custap, Enigma, Jaboca, Micle, and Rowap Berries 2019-01-08 08:25:57 -05:00
Kris Johnson
6d14c02b39 RU: Quickban Darmanitan (#5077)
https://www.smogon.com/forums/threads/np-ru-stage-12-summertime.3639410/page-3#post-8006400
2019-01-08 04:48:21 -06:00
Kris Johnson
140b85b7d9 Fix Crabominable's tier (#5076)
Crabominable didn't reach the PU usage threshold, but it was overlooked.
2019-01-07 20:33:03 -06:00
urkerab
0a60bd8a43 Fix two issues with Flame Burst (#5064) 2019-01-06 19:21:51 -06:00
The Immortal
e5cbffe236 Random Battle: Improve Oricorio 2019-01-06 18:05:47 +04:00
Kris Johnson
7a8bdff8f2 Fix Mega Glalie's, Mega Slowbro's, and Slowking's tiers (#5071) 2019-01-06 03:03:01 -06:00
Kris Johnson
7eb968cbe0 Implement January tier changes (#5070) 2019-01-05 22:09:50 -06:00
Russell Jones
09118c0937 OHKO moves are really only 150 power to Forewarn (#5058)
Also the 1-power CFZs count as 80 to Forewarn, not that that's a particularly likely interaction to come up anywhere.
2019-01-02 01:35:14 -06:00
Kris Johnson
c3b8756408 Move Zygarde to Uber (#5060) 2019-01-01 17:18:54 +04:00
MacChaeger
54eeb88e5e Fix Stomping Tantrum interaction with spread moves and Protect (#5055) 2018-12-28 20:09:31 +04:00
n10sit
a9be7e21cf Update aliases for Doubles formats and VGC (#5054)
Its not technically moon series in VGC until the 1st of Jan but there aren't any events in the next 3/4 days so I just went ahead and let "vgc" point to moon
2018-12-28 00:51:13 -08:00
MacChaeger
313d7f8621 Submoves lose their inherent Mold-Breaking properties, if any (#5049) 2018-12-27 11:08:51 -08:00
Alexander B
7e48645999 Fix Wish in Doubles (#5030) 2018-12-25 09:29:11 -08:00
MacChaeger
2710633765 Magic Guard should block crash damage (#5042) 2018-12-25 09:08:00 -08:00
The Immortal
e2ce69153c Random Battle: Fix Gyarados set 2018-12-23 19:07:35 +04:00
Marty-D
dd3da86f7f Add Shiny Tapu Lele event 2018-12-18 09:04:17 -05:00
urkerab
23bf166b61 Use -fail instead of -notarget in Gen 5 or later (#5033) 2018-12-16 13:57:03 -06:00
Alexander B
337534e290 Fix Roar failure message (#5031) 2018-12-16 11:28:18 -06:00
plumberjack
4e2e4263d9 Clarifiy Unnerve's description (#5028) 2018-12-15 10:38:12 -05:00
Alexander B
eecde00ed3 Fix Leppa Berry (#5025) 2018-12-14 01:12:41 -06:00
asgdf
39de70b9b9 Fix Defog move attribution (#5020)
Not sure if this matters for anything, but since the [of] presumably describes who used the move in the [from], it should be the source for both messages.
2018-12-10 17:04:16 -06:00
asgdf
6bf2e653ee Fix Yawn ignoring Sleep Clause (#5019) 2018-12-10 17:12:31 -05:00
Kris Johnson
1b15413003 Update tiers (#5017) 2018-12-09 21:23:22 +04:00
Guangcong Luo
877c9feeeb Fix onEffectiveness event signature
I fixed `onAfterSubDamage` in the previous commit, but this one I left
for later.
2018-12-08 22:52:59 -06:00
Kevin Lau
5b6db643cf Random Battle: Enable Stomping Tantrum Raticate (#5014)
It's more powerful than Flame Wheel and hits both Rock and Steel super
effectively, unlike Flame Wheel only being super effective on Steel.
2018-12-08 21:50:17 -06:00
Guangcong Luo
13614b9890 Update for TypeScript 3.2
TypeScript 3.2 unearthed a metric fuckton of bugs, making this change
take effectively forever.
2018-12-08 21:39:38 -06:00
Marty-D
66c86c3360 NU: Unban Mega Abomasnow 2018-12-06 08:38:13 -05:00
The Immortal
4cde8b395d
Add Let's Go aliases 2018-12-01 21:08:06 +04:00
Marty-D
0606241664 Add CAP 25: Caribolt, Smokomodo, Snaelstrom 2018-11-29 13:30:33 -05:00
Kris Johnson
f35be21021 Battle Factory: Update UU (#4989) 2018-11-28 15:52:41 -05:00
urkerab
022e69e944 Fix Solar Blade in Sun animation (#4998) 2018-11-28 13:23:33 -06:00
Guangcong Luo
aba474869d Fix Solar Beam in Sun animation 2018-11-27 23:29:28 -06:00
Guangcong Luo
c752b327ca Fix no-target charge moves 2018-11-27 23:25:29 -06:00
Kevin Lau
1781d0f4a8 Random Battle: Don't generate Z-Crystal Arceus if Z Move already present (#4995) 2018-11-26 17:58:11 +04:00
Marty-D
63badc586f
Update Instruct 2018-11-23 11:03:59 -05:00
The Immortal
0aa405ff02 LC: Ban Wingull 2018-11-22 17:06:59 +04:00
Marty-D
a4430f9aa5
Correct new move index numbers 2018-11-20 14:15:04 -05:00
Marty-D
2a016419ba
Fix Sappy Seed and Sparkly Swirl 2018-11-20 12:45:31 -05:00
Guangcong Luo
4990a5ca4b Fix Sparkly Swirl
I don't have time to investigate how success/failure works in this
system, but this at least fixes the immediate problem.

Fixes #4977
2018-11-19 18:51:46 -06:00
Guangcong Luo
37a5cf25cc Fix Power Herb animation 2018-11-19 17:20:55 -06:00
urkerab
5d259fe6ac Fix charge moves without target (#4974) 2018-11-19 17:09:56 -06:00
Kris Johnson
5b2d76d75d Add Pokemon Let's Go! (#4967) 2018-11-19 16:19:19 -06:00
Kevin Lau
e608f09e06 Random Battle: Update Buzzwole (#4972)
Replace Hammer Arm with Drain Punch in Doubles.
2018-11-19 16:11:27 +04:00
Lycanium Z
766508d860 Doom Desire is affected by Adaptability &Normalize (#4975) 2018-11-18 22:11:03 -06:00
LegoFigure11
feb7997b39 Update BSSF Kommo-o EVs (#4968)
...to ensure that Salac Berry activates after Belly Drum + Sub
2018-11-15 14:05:47 +04:00
The Immortal
e9fd148fec
Move Mega Gengar to DUber 2018-11-12 20:43:27 +04:00
Guangcong Luo
3a8add5c4b Remove [msg] parameter of -immune
(It's unnecessary, being the default message for it.)
2018-11-10 12:31:21 -06:00
The Immortal
2be2f9c5e4
Add alias for Partners in Crime 2018-11-09 11:29:15 +04:00
Kevin Lau
7b7ff51b0f Random Battle: Add Defog to Delibird (#4955)
It learns it in USUM and it's much better hazard removal for it because
Hustle gives Rapid Spin a chance of missing, and the evasion reduction
helping its other moves affected by Hustle.
2018-11-05 15:54:39 +04:00
Kris Johnson
72efba8f40 Crabominable and Carracosta should be PU (#4953)
They were always PU by usage, but got looked over. Nobody noticed until now because they're both banned from ZU.
2018-11-03 18:57:54 -05:00
Marty-D
716d4a8282 Add new event Pokemon 2018-11-02 10:41:32 -04:00
Guangcong Luo
42dbad88a7 Fix Soak to leak target
Soak is apparently unique and weird in that it animates before
displaying the "But it failed!" message:

https://youtu.be/O8xSp7UYYSU?t=34m21s
2018-11-01 08:45:34 -05:00
Alexander B
34c3096d6b "But it failed!" messages should not reveal the target (#4944) 2018-11-01 09:41:04 -04:00
Guangcong Luo
68e81c8c72 Rename hasSTAB to forceSTAB
This better describes what it actually means.
2018-10-28 05:27:22 -05:00
Guangcong Luo
24571ea603 Fix misc errors found by LGTM 2018-10-28 05:04:30 -05:00
The Immortal
5810799638 Random Battle: Prevent Infiltrator Malamar 2018-10-27 21:56:30 +04:00
Kris Johnson
4a58aedbd5 UU: Unban Bisharp (#4929) 2018-10-24 23:29:58 -05:00
HoeenHero
0a7ebcd076
Super Staff Bros Brawl (#4915)
Was a major project, credit also goes to @CheeseMuffin @KrisXV @ImLycan @MacChaeger @TheTiksiBranch and @Volco for helping to code this format!
2018-10-20 13:53:30 -04:00
bgsamm
9569dee47f Fix Assurance never doubling when called from other moves (#4905) 2018-10-18 14:54:39 -04:00
Alvin Ho
9d676aae71 Fix Mummy and Parental Bond Interaction (#4890)
Problem: Parental Bond when changed to Mummy midstrike would cause the second move to miss the .25 base power modification
Added Parental Bond check in Mummy to maintain the power modification
2018-10-12 21:20:46 -05:00
Guangcong Luo
e3ebf2b3c1 Fix Z-caller Weather Ball interaction 2018-10-11 12:54:45 -05:00
bgsamm
a68f6276e9 Refactor lastAttackedBy to hurtBy (#4894) 2018-10-11 10:23:38 -05:00
Guangcong Luo
f008188b9f UnknownEffect Moves are always ActiveMoves 2018-10-10 18:52:21 -05:00
Guangcong Luo
affcad7873 Improve documentation of isZ vs isZPowered
move.zPowered is renamed move.isZPowered. It's now documented in JSDoc
exactly how it differs from move.isZ.

This commit includes several minor refactors to Z-move mechanics,
including a bug fix: Z-boosted called Weather Ball is now correctly
typed.
2018-10-10 18:44:05 -05:00
Guangcong Luo
ecb27edb4d
Introduce ActiveMove; make some types read-only (#4902)
The types Template, Move, Ability, and Item are now read-only. This
should guard against accidental writing to types that shouldn't be
written to.

A new type, ActiveMove, has been introduced. Like it sounds, it's
used for moves that are currently actively being used. A lot of
attributes that are only relevant to active moves, such as
`hasBounced`, are now only available on ActiveMove, not on Move.
ActiveMoves are mutable, unlike Moves.

getMoveCopy has been renamed getActiveMove, to better reflect its
role. `isCopy` has been deprecated, and distinguishing Moves from
ActiveMoves is now done by `typeof move.hit === 'number'` where
necessary.

ActiveMoves now internally track which hit of a multihit move
they're on, in move.hit, so move.hit doesn't need to be manually
incremented by Triple Kick and Parental Bond anymore.

move.hasParentalBond has been replaced by a more generic
move.multihitType.
2018-10-10 16:04:35 -05:00
Kris Johnson
8d34387e37 Add 'neckboy' alias for Exeggutor-Alola (#4900) 2018-10-09 23:29:20 -05:00
The Immortal
caa44a9262
Fix Drampa's tier 2018-10-08 21:13:56 +04:00
The Immortal
49afd3a89e Move Bisharp and Latios to UUBL 2018-10-08 14:11:23 +04:00
Alvin Ho
7d0275b453 Fix Flower Veil interaction with self-inflicted status and Yawn (#4889) 2018-10-07 21:48:30 -04:00
whales
d16eba8da4 Fix Assurance doubling on faint (#4876) 2018-10-07 21:46:29 -04:00
Kris Johnson
b6094806da Support ZU in the teambuilder (server-side) (#4888) 2018-10-07 15:56:36 +04:00
The Immortal
90439f8145 Random Battle: Fix Arceus-Ghost 2018-10-07 00:26:09 +04:00
Marty-D
086daa92dc Add new event Pokemon 2018-10-05 20:09:14 -04:00
Kris Johnson
ce35687f7b Type: Null is PU (#4886) 2018-10-05 16:36:35 -05:00
n10sit
a7ed6cd38f Doubles tier shift updates (#4885)
https://www.smogon.com/forums/threads/usage-based-tier-update-for-october-2018.3642391/page-2#post-7926403
2018-10-05 11:12:51 -04:00
Marty-D
fc08ac5506 Tiers: Update for October tier shift 2018-10-05 09:31:55 -04:00
Quinton Lee
94016f6218 Update Typescript to 3.1 (#4879) 2018-10-05 04:02:54 -05:00
Kevin Lau
ce4cdcbc30 Random Battle: Update sets with forum suggestions (#4877) 2018-10-01 15:38:15 +04:00
Marty-D
8e4f83778f Gen VI-VII: Update breaking protection 2018-09-24 13:56:59 -04:00
The Immortal
d80c813118 Update Random Battle 2018-09-24 17:10:17 +04:00
The Immortal
5df0a02fcb Revert "Implement Illusion Level Mod"
This reverts commit 60075830b6.
2018-09-24 15:54:33 +04:00
Kevin Lau
48e0e8755d Random Battle: Fix Torterra (#4870) 2018-09-24 14:13:54 +04:00
The Immortal
5ef9857101 Random Battle: Fix Arceus 2018-09-24 07:07:37 +04:00
Guangcong Luo
60075830b6 Implement Illusion Level Mod
Normally, Illusion copies everything except the level, so if Zoroark is
a different level from the pokemon it's copying, it's very obvious that
it's a copy. This isn't a problem normally (because everyone is 50 or
100), but in randbats, it's a big tell, and makes Zoroark weaker than
it's supposed to be.

And, unrelatedly, everyone thinks it's a bug even though it's not.
2018-09-21 16:33:17 -05:00
Marty-D
6024c4a1b1 Add new event Pokemon 2018-09-20 21:37:23 -04:00
The Immortal
0818b1cd9e Random Battle: Various improvements 2018-09-20 04:47:40 +04:00
The Immortal
2def7525a4 Random Battle: Add Z-Move Mimikyu 2018-09-20 00:52:07 +04:00
Alexander B
a0c921323c Fix double Sky Drop message (#4864) 2018-09-19 17:11:56 +04:00
The Immortal
fe2097dd82 Reduce Emergency Exit's rating 2018-09-18 22:28:24 +04:00
Marty-D
76e486f7c1
Fix Conversion 2
Who did this...
2018-09-16 09:12:49 -04:00
Marty-D
faf04449df
Clarify Mind Blown description 2018-09-14 20:31:02 -04:00
Marty-D
b4b2f1ebf0 Fix Laser Focus 2018-09-13 11:35:29 -04:00
Marty-D
952ccb2d80 Correct Soul-Heart activation order 2018-09-13 11:34:30 -04:00
Kris Johnson
2a25f4e333 Battle Factory: Update Ubers (#4851) 2018-09-12 23:07:54 +04:00
The Immortal
f4e2b4fbed September tier shifts 2018-09-10 22:28:09 +04:00
Kevin Lau
50c2413d0d Random Battle: Update Empoleon (#4844)
Hidden Power Fire has virtually no useful coverage for a Pokemon that
should always have a Water move, and Defog is a popular move on
Empoleon. Also add rejection for Defog+Stealth Rock similar to the
already-existing Defog+Spikes rejection.
2018-09-06 15:39:37 +04:00
Marty-D
16faa75ee4 CAP: Add Mumbao and update prevos 2018-09-04 14:23:14 -04:00
Marty-D
733ea72d4f Make a move fail if the target is the user and it's not self-target 2018-09-03 11:24:38 -04:00
The Immortal
9623a190bf Update PU 2018-09-03 16:23:09 +04:00
Marty-D
8d582a4b33 Add new event Pokemon 2018-09-02 16:20:08 -04:00
Marty-D
ce8dd99909 Learnsets: Lotad can't learn Dive 2018-09-02 16:19:22 -04:00
Kris Johnson
5813add1e2 Add September RoA Spotlight, LCotM, and OMotM (#4838) 2018-09-01 16:02:05 +04:00
The Immortal
0a10b30674 Add Accuracy Moves Clause 2018-09-01 15:26:11 +04:00
Guangcong Luo
2c15a1663a
BrightPowder -> Bright Powder
Fixes https://github.com/Zarel/Pokemon-Showdown-Client/issues/1142
2018-09-01 04:09:35 -05:00
urkerab
b97365f52c Restore Mirror Move's short description (#4836) 2018-08-29 23:48:30 +04:00
Marty-D
87a1542147 Update Phantom/Shadow Force interaction with Minimize
Fixes #4830
2018-08-28 14:24:57 -04:00
Kevin Lau
5cd0e0750d Random Battle: Fix Flyinium Z appearing with other Z Crystals (#4834) 2018-08-28 15:57:56 +04:00
Marty-D
e758f0a2f0 Add Team Preview to the Minimal GBU ruleset 2018-08-26 17:12:28 -04:00
Marty-D
e8b12b263d Gen IV: Allow Arceus with max EVs by default
https://www.smogon.com/forums/threads/changes-to-arceuss-legality-dpp-ubers-revisited.3593683/
This lets people play whichever ruleset they want for custom Ubers tournaments.
2018-08-25 15:19:43 -04:00
Marty-D
21cf8fbab0 Descriptions: Change "Ability [name]" to "[name] Ability" 2018-08-25 12:56:23 -04:00
Marty-D
27745ad837
Gen VII: Update move descriptions 2018-08-25 11:45:48 -04:00
Marty-D
f02cb59e0e Add event Meloetta 2018-08-24 22:33:36 -04:00
MacChaeger
84381c2bf2 Arceus/Silvally should have standard type mechanics when transformed (#4700) 2018-08-22 14:19:46 -04:00
Kris Johnson
36959aa952 BF: Remove Kingler from PU 2018-08-22 18:30:52 +04:00
Kris Johnson
da15ac1ce2 BF: Actually fix checking Megas in Monotype 2018-08-22 18:30:52 +04:00
Marty-D
ac71237de1 Gen II-III: Fix Berry usage timing 2018-08-21 16:36:23 -04:00
The Immortal
0e4374666b
Move Kingler to PUBL 2018-08-20 19:36:21 +04:00
Kevin Lau
e44eb16213 Random Battle: Fix Genesect formes (#4821) 2018-08-20 15:11:30 +04:00
Kevin Lau
cd94fe4efe Random Battle: Expand range of moves that count as recovery (#4818) 2018-08-18 17:54:08 +04:00
Marty-D
309f116cdf
Battle Factory: Fix Tangela set 2018-08-16 13:49:18 +00:00
Kris Johnson
07a9d46a2c Battle Factory UU updates (#4811) 2018-08-15 01:03:02 +04:00
The Immortal
b6652405b8 Random Battle: Fix Samurott 2018-08-15 00:22:18 +04:00
Guangcong Luo
7b42d55a97
Clarify Synchronize hack 2018-08-14 12:50:40 +09:00
urkerab
52a214e7b9 Synchronize should trigger activations of other Abilities again (#4808) 2018-08-12 21:15:26 -04:00
urkerab
62911d3035 Make Dancer copy the called Dance move (#4807) 2018-08-12 21:15:02 -04:00
The Immortal
abc8d21342 Random Battle: Fix Dhelmise 2018-08-12 03:08:52 +04:00
The Immortal
139a852a70
Battle Factory: Fix incorrect species 2018-08-12 03:04:00 +04:00
The Immortal
a0f433641f Random Battle updates 2018-08-12 00:39:17 +04:00
Kris Johnson
32a6cc6713 Battle Factory: Update sets (#4797) 2018-08-11 00:59:58 +04:00
The Immortal
17a6fe1e29 Random Battle updates 2018-08-09 05:23:55 +04:00
littlefoot22
58e9a8923e Fix Rollout / Ice Ball target locking (#4796) 2018-08-07 21:54:35 -04:00
Marty-D
c944f01537 Fix Parental Bond 2018-08-07 17:06:27 -04:00
The Immortal
5953aa13cf
Move Stoutland to PU 2018-08-07 16:36:27 +04:00
The Immortal
a818383dd0
Move Mega Venusaur to UUBL 2018-08-06 23:08:10 +04:00
MacChaeger
82c792f82c Update to TypeScript 3.0.1 (#4710) 2018-08-07 03:27:28 +09:00
Marty-D
33a90b79e1 Actually make sure SpA and SpD match in Gen 1 2018-08-05 15:29:37 -04:00
Marty-D
cffd536c0d Add new event Pokemon 2018-08-03 15:10:25 -04:00
The Immortal
29b4b2b277 Random Battle: Update item selection with Switcheroo/Trick 2018-08-03 18:37:28 +04:00
The Immortal
37e20bb68e
Move Entei to RUBL 2018-08-02 23:29:21 +04:00
Marty-D
aaa921a4a7
Battle Factory: Fix Delphox EVs 2018-08-02 14:38:30 +00:00
The Immortal
7bd409c270
Battle Factory: Update Incineroar 2018-08-01 22:52:12 +04:00
Kevin Lau
7d4c2306f3 Random Battle: Improve Gyarados (#4760)
Rest and Sleep Talk are very uncommon on Gyarados. Removing them allows
for a higher chance of using Gyarados' most popular set, Dragon Dance +
Bounce with Flyinium Z.
2018-07-31 21:40:24 +04:00
Kris Johnson
f5261e3090 BF: Add tier shift support and fix Slurpuff (#4776) 2018-07-31 21:25:40 +04:00
Marty-D
88d02ef8b5 Deal with illegal move combinations
Until the validator can handle them
2018-07-29 18:18:29 -04:00
asgdf
3487c819b6 Add priority note to Water Shuriken shortDesc (#4774) 2018-07-23 19:00:04 -04:00
Marty-D
472955dacd
UU: Ban Mega Diancie 2018-07-21 12:18:25 -04:00
Marty-D
166477f660
Fix crash in Trump Card 2018-07-21 11:48:11 -04:00
Kris Johnson
a79af39f02 RU: Ban Mega Sceptile and Mega Slowbro (#4770)
https://www.smogon.com/forums/threads/np-ru-stage-11-ill-drown-mega-slowbro-mega-sceptile-banned.3638874/#post-7855251
2018-07-21 17:11:49 +08:00
Kris Johnson
f03634b191 Ban Hoopa from NU (#4767)
https://www.smogon.com/forums/threads/np-nu-stage-10-kids-see-ghosts.3639192/#post-7854176
2018-07-20 16:01:52 +08:00
The Immortal
fc25144e3c
Move Aromatisse to PUBL 2018-07-19 22:25:53 +08:00
Kris Johnson
de1c97651a Quagsire should be NU (#4762) 2018-07-16 19:44:12 -04:00
urkerab
64b6f4ad22 Splintered Stormshards should not trigger Grassy Terrain recovery (#4758) 2018-07-16 15:44:44 -04:00
n10sit
9a1fec300f Tiers: Update Doubles UU (#4757) 2018-07-15 20:57:36 -04:00
Marty-D
386065fdc6 Tiers: Add July tier shifts
Closes #4746
2018-07-15 20:48:08 -04:00
asgdf
6e7cec1c83 Send enditem message on Pickpocket steal (#4752) 2018-07-13 18:28:30 +09:00
The Immortal
c71724a16f Random Battle updates 2018-07-07 00:41:34 +08:00
The Immortal
2b6d59c46b Random Battle: Make Beast Boost actually useful in some cases 2018-07-05 19:09:14 +08:00
The Immortal
9bc3dc7e88
Move Gigalith to NUBL 2018-07-03 22:41:09 +08:00
Marty-D
4eb33d68bf Add new event Pokemon 2018-07-03 09:08:32 -04:00
The Immortal
ead172baa0 Random Battle: Add Lycanium Z Lycanroc 2018-07-03 20:38:18 +08:00
urkerab
89e33bc649 Fix Bestow, Covet, Symbiosis and Thief with a required item (#4715) 2018-07-02 17:36:37 -04:00
urkerab
b7e4ef0ca1 Disable, Mirror Move, and Spite should fail against a Z-Move (#4338) 2018-07-02 17:35:17 -04:00
Marty-D
a56f70dada Release Zeraora and Plasma Fists 2018-07-01 13:53:41 -04:00
Marty-D
538ac5ca55 Fix protection interaction with Z-Powered Z-Moves 2018-06-30 16:34:35 -04:00
Marty-D
7ada6a873a Learnsets: Update Keldeo and Meloetta 2018-06-28 10:58:43 -04:00
Marty-D
d46abff4da
Make sure AfterMove effects use the correct move 2018-06-27 15:41:30 +00:00
Spandan Punwatkar
6723b78d8a Add new Aliases (#4723)
Bisharp and Terrain alias suggestions
2018-06-25 00:07:53 -07:00
Marty-D
9109f110bc Fix Sheer Force interaction with Clangorous Soulblaze 2018-06-24 09:38:56 -04:00
Marty-D
81890ea01b Add more missing event Pokemon 2018-06-23 09:47:38 -04:00
Marty-D
a909b23d0d Add missing Smeargle event 2018-06-22 08:44:06 -04:00
The Immortal
5fc25a57b9 Move Breloom to UUBL 2018-06-22 11:28:58 +08:00
Marty-D
f9125274cd Learnsets: Remove useless egg moves 2018-06-21 13:33:53 -04:00
The Immortal
f3db6abeb9 Random Battle updates 2018-06-20 17:31:53 +08:00
Kevin Lau
8d1c1dd0e2 Random Battle: Fix Flare Blitz Emboar (#4716)
* Random Battle: Fix Flare Blitz Emboar

Update Flare Blitz vs Fire Blast rejection to prioritize Flare Blitz if
the Pokemon has Reckless as an ability. Also change Stone Edge to Head
Smash to further capitalize on the ability.

* Backport changes to Gen 6 Random Battle
2018-06-18 21:04:41 +08:00
Kris Johnson
ca4dee85dc Battle Factory: Virizion is RU (#4725) 2018-06-16 16:15:42 +08:00
Marty-D
b97c6d984b
Tiers: Add June quick drops 2018-06-10 20:19:17 +00:00
Marty-D
f259d43987 Fix Nightmare removal properly 2018-06-09 18:17:58 -04:00
Marty-D
6eccc565fd Add new event Pokemon 2018-06-09 11:05:22 -04:00
Marty-D
ea75aa39dd Fix Nightmare removal 2018-06-08 23:05:20 -04:00
Marty-D
8194d31c79 Update Assist 2018-06-03 16:29:30 -04:00
Marty-D
691ce185b0 Add Shiny Zygarde event 2018-05-31 22:02:02 -04:00
urkerab
57961d9c60 Fix Snatch interaction with Rest (#4690) 2018-05-28 20:12:37 -04:00
MacChaeger
b082705569 Transform should ignore Roost's effects (#4698) 2018-05-28 13:17:06 -04:00
urkerab
57f5fefdb2 Psycho Shift should fail verbosely (#4697) 2018-05-27 21:03:41 -04:00
Marty-D
fa8a95342e
Revert "Psycho Shift should fail verbosely (#4695)"
This reverts commit d50f137192.
2018-05-27 17:39:18 -04:00
urkerab
d50f137192 Psycho Shift should fail verbosely (#4695) 2018-05-27 12:41:42 -05:00
tmagicturtle
e15195e0a5 Fix Brine (#4692) 2018-05-26 14:30:48 -04:00
MacChaeger
22ad90d3ff Camomons: Modify the template unless the Pokemon is transforming (#4688) 2018-05-25 19:27:47 -04:00
Marty-D
0d917e4c98 Add Persistent activation 2018-05-25 11:48:33 -04:00
MacChaeger
08ba5bc831 Make formeChange handle relevant messages and ability changes (#4654) 2018-05-23 19:55:05 -04:00
MacChaeger
526c118d1e Imprison shouldn't stop z-status moves (#4686) 2018-05-23 14:40:36 -05:00
Marty-D
37e076216d
Dex: Renumber CAP 2018-05-23 02:11:40 +00:00
Marty-D
8ae3399f00
Improve Persistent descriptions 2018-05-23 01:16:14 +00:00
MacChaeger
1be208916a Improve Stomping Tantrum interaction with Protect (#4680) 2018-05-21 22:39:30 -04:00
MacChaeger
e3174ebc02 Fix type display in Gen 7 metas (#4655) 2018-05-21 17:27:23 -05:00
Marty-D
147605e779
Fix crash in Heal Block 2018-05-21 16:10:39 +00:00
MacChaeger
a4a3d31b7c Properly support Pokemon with no ability (#4678) 2018-05-20 22:13:24 -05:00
Marty-D
ae470a4229
Add Jumbao's flavour Ability 2018-05-20 14:11:35 +00:00
MacChaeger
6a7c3aa138 Heal Block should not prevent any direct healing effects from Z-Moves (#4676) 2018-05-19 22:51:45 -04:00
Kris Johnson
27f3f7d5d9 Battle Factory: Update NU and PU (#4679) 2018-05-19 21:48:59 -04:00
Marty-D
248797c926 Add CAP 24: Jumbao 2018-05-19 18:48:23 -04:00
Marty-D
8cb12f547e
Fix Truant interaction with recharge turns 2018-05-18 08:33:59 -04:00
Marty-D
17f6292b61
Improve Truant check 2018-05-18 03:39:31 +00:00
Marty-D
2ab375f3cc Implement Truant correctly 2018-05-17 20:31:19 -04:00
The Immortal
602b60d035
Move Venusaur to NUBL 2018-05-18 03:34:41 +08:00
The Immortal
6fdb311e50 Random Battle: More updates 2018-05-17 02:24:04 +08:00
MacChaeger
af40242e50 Allow Pokestar props in Gen 5 formats lacking '-illegal' (#4671)
For the purpose of making custom tours with Pokestar props allowed possible.
2018-05-15 22:22:03 -05:00
The Immortal
016a908358 Random Battle updates 2018-05-16 04:03:14 +08:00
The Immortal
53bef691b7 Random Battle: Prevent Pressure Bisharp 2018-05-15 21:13:18 +08:00
Kevin Lau
2f3b6ccee4 Random Doubles: Add sets for new USUM mons (#4667) 2018-05-15 16:05:49 +08:00
Marty-D
8a6ef0d792 Implement Metronome item slightly less incorrectly
This is still wrong because spamming a Fire attack in Primordial Sea
should not boost damage, but then you run into the problem of boosting
multiple times against multiple targets.
TODO: fix this
2018-05-14 09:50:27 -04:00
Marty-D
d110807efd
Fix Mystery Berry message 2018-05-14 13:31:48 +00:00
Marty-D
f79a889e84
Fix crash in Mystery Berry 2018-05-14 13:24:57 +00:00
The Immortal
5cbbd29b34 Random Battle: Fix Exploud/Deoxys-A with no STAB 2018-05-09 16:29:01 +08:00
Kris Johnson
ccf3efb938 RU: Unban Entei (#4650)
https://www.smogon.com/forums/threads/np-ru-stage-10-levels-entei-unbanned.3633367/#post-7781594
2018-05-08 15:50:29 +08:00
The Immortal
566d614d52 Remove PU suspect test 2018-05-08 01:25:34 +08:00
The Immortal
e9e8d73788 Random Battle: Minor improvements 2018-05-05 05:48:04 +08:00
MacChaeger
3b54f1d0c1 Fix Baton Pass fail message (#4637) 2018-05-02 18:47:54 -05:00
The Immortal
4a2215c53e Fix Nickname Clause 2018-05-01 21:55:37 +08:00
Marty-D
558b2c6f2b
Battle Factory: Really prevent multiple Megas 2018-04-29 14:48:16 -04:00
Marty-D
b3cf00f4cc Add new event Pokemon 2018-04-29 10:12:09 -04:00
Marty-D
55fc186bff
Update item aliases 2018-04-28 16:43:09 +00:00
Marty-D
43a1447f32
Correct Cosplay Pikachu event 2018-04-28 14:32:54 +00:00
Kevin Lau
f6051b903b Random Doubles: Reduce prevalence of Leftovers (#4631) 2018-04-28 11:16:38 +08:00
Guangcong Luo
8636ab1840 Remove eslint no-undef-init rule 2018-04-27 22:03:00 -05:00
MacChaeger
c6806c84ff Fix Defog and Splash-likes being erroneously counted as failures (#4627) 2018-04-27 21:59:52 -05:00
Marty-D
344d2d72a6 Fix Tickle Wynaut legality
To be reverted when the validator supports the Pomeg Glitch with Gen 3
event eggs.
2018-04-27 10:51:44 -04:00
Marty-D
de3feb15fe Fix Giratina and Hoopa's learnsets 2018-04-27 10:49:13 -04:00
Marty-D
2ecde625ec Fix Shaymin's learnset 2018-04-26 20:30:32 -04:00
MacChaeger
3d5aa2dba6 Battle Factory: Prevent double Megas (#4628) 2018-04-26 19:33:39 -04:00
SkyPhoenix (FlareonBlitz)
14d19eb991 Update Mummy description (#4626) 2018-04-26 16:31:11 -04:00
The Immortal
9505a7463f Random Battle updates 2018-04-27 00:32:23 +08:00
Kris Johnson
09bf67da3a BSS Factory: Remove unnecessary set properties (#4623) 2018-04-26 10:51:57 -04:00
Kevin Lau
f35d43ef36 Fix countering a hit for 0 damage (#4621) 2018-04-26 10:51:05 -04:00
Marty-D
2304689281 Random Battle: Use new BL names 2018-04-25 08:51:57 -04:00
Marty-D
2d40904573 Fix some item sprites 2018-04-25 08:50:55 -04:00
Marty-D
eabea98764 Add new event Pokemon 2018-04-25 08:50:24 -04:00
Marty-D
6bf35eeb2c Rename BLs 2018-04-24 20:29:06 -04:00
The Immortal
32aeb67ba9 Random Battle: Prevent Flyinium Z with RestTalk 2018-04-24 13:49:20 +08:00
Kevin Lau
cd7172ff01 Fall back to Random Singles sets if Doubles set is not present (#4624) 2018-04-24 13:38:48 +08:00
Marty-D
e453a772fb Add some miscellaneous items 2018-04-23 21:13:15 -04:00
Kris Johnson
629d94273c Battle Factory: Remove unnecessary set properties (#4618) 2018-04-23 19:28:50 -04:00
The Immortal
572fbc02c0 Remove PU suspect test 2018-04-23 19:58:36 +08:00
whales
587cbaa842 Make randdubs generator use randdubs sets (#4620) 2018-04-23 15:00:23 +08:00
MacChaeger
c03572b8f8 Update Metronome's uncallable moves (#4619) 2018-04-22 20:01:01 -04:00
urkerab
dbe1f288c6 Prevent Ice Ball and Rollout from locking while asleep (#4599) 2018-04-22 16:43:25 -04:00
The Immortal
20bf85839d Move Azumarill to BL 2018-04-23 04:41:07 +08:00
Marty-D
7ea4f499b9
Fix Neuroforce 2018-04-22 16:23:44 +00:00
Kris Johnson
3f890a9d47 Battle Factory: Fix Magby's IVs (#4614) 2018-04-21 17:29:46 -04:00
Marty-D
718e33c086
Stop running Pursuit if the user fainted 2018-04-21 12:06:19 -04:00
The Immortal
f1bffd4019 Random Battle fixes 2018-04-21 15:49:22 +08:00
Kevin Lau
fecb4e37ff Random Battle: Add Decidium-Z (#4607)
* Random Battle: Add Decidium-Z

* Only give Decidium Z if Decidueye has setup
2018-04-21 08:12:00 +08:00
Kris Johnson
3c9bbc76ec Battle Factory: Add NU sets and adjust tiers (#4609) 2018-04-20 16:37:26 -04:00
Kris Johnson
cd06574554 RU: Update bans (#4606) 2018-04-20 11:30:45 +08:00
Kevin Lau
ea7017302a Random Battle: Unify set generation for Singles and Doubles (#4595) 2018-04-18 15:19:51 +08:00
Kris Johnson
047d881b85 NU: Ban Abomasnow-Mega, Bruxish, and Camerupt-Mega (#4601) 2018-04-18 01:58:15 +08:00
Marty-D
0a4d472885
Battle Factory: Fix bad LC sets 2018-04-16 15:14:04 -04:00
MacChaeger
95e0f30027 Spite: Show actual PP reduction (#4590) 2018-04-15 01:40:49 -05:00
MacChaeger
711a0d4ce4 Check semi-invulnerability before immunities (#4574) 2018-04-14 10:27:45 -04:00
Marty-D
f2c46d24c3
Battle Factory: Fix Arceus-Bug set 2018-04-13 19:02:17 -04:00
Marty-D
137aa61db8 Learnsets: Move CAP to the bottom 2018-04-13 10:58:09 -04:00
Marty-D
726dc4357d Add new CAP prevos 2018-04-13 10:32:58 -04:00
The Immortal
e8a6c7b13c Random Battle: More updates 2018-04-13 22:29:15 +08:00
MacChaeger
2f727b38e7 Random Battle: Improve STAB detection/rejection (#4541) 2018-04-13 17:28:56 +08:00
The Immortal
10f2ff5b5c Random Doubles: Properly fix abilities 2018-04-13 17:18:33 +08:00
MacChaeger
054082e0d2 Randdubs: Let Pokemon with only one ability actually get that ability (#4585) 2018-04-13 14:28:11 +08:00
Kris Johnson
216932edbc Tiers: Fix overlooked Doubles shifts (#4580) 2018-04-13 04:05:10 +08:00
The Immortal
918818d27f Random Battle updates 2018-04-13 04:03:54 +08:00
The Immortal
a99ca936d3
Move Typlosion to BL4 2018-04-13 03:39:30 +08:00
n10sit
77f742d422 Tiers: Update Doubles for April tier shift (#4577)
https://www.smogon.com/forums/threads/usage-based-tier-update-for-april-2018.3632386/#post-7753731
2018-04-12 08:51:58 -04:00
Marty-D
08cb082359
Tiers: Update for April tier shift 2018-04-12 12:49:24 +00:00
Quinton Lee
acd812c71e Typescript gens 1-4 (#4556) 2018-04-11 22:11:25 -05:00
Marty-D
9e1e05a4e6 Fix Encore
Obviously, if the move isn't part of the moveset, it fails.
2018-04-10 21:57:41 -04:00
Marty-D
c00918e01b Add Ultra Kalos Classic 2018-04-10 12:01:47 -04:00
urkerab
10491ce2ed Delta Stream does not affect Weather Ball (#4560) 2018-04-08 17:47:55 -05:00
Ivo Julca
cb6630e94b Check sourceEffect instead of lastMove in Trump Card
This allows moving the .moveUsed() call after .useMove() when running moves
Refs #4558
2018-04-08 01:24:28 -05:00
Marty-D
fbf21e68e9
Really fix Sky Drop interaction with first-turn effects
See also 3818165742
2018-04-08 04:10:58 +00:00
Ivo Julca
da4a8b72ce Fix: Preserve pranksterBoosted for Status moves overriden into other moves
So if a Prankster-mon chooses in two successive turns an attacking move and an Status move,
and this Pokémon is encored into the attacking move before the Status move proceeds,
the attacking move will be used and it won't affect a Dark-type target.
2018-04-06 05:09:47 -05:00
MacChaeger
2feb607c9d Pursuit should not move before a switch when targeting an ally (#4548) 2018-04-05 22:07:54 -04:00
Quinton Lee
b45d595519 Update Typescript to 2.8 (#4532) 2018-04-05 17:33:35 -05:00
Marty-D
ce38fe5c03 Fix Auras boosting only one hit of a spread move 2018-04-05 10:12:32 -04:00
MacChaeger
27afe1b6b8 Gen VI-VII: Transform should copy Focus Energy (#4546) 2018-04-05 09:19:43 -04:00
Kevin Lau
b8e7d4e47e Random Doubles: Fix Magic Guard Clefable (#4550) 2018-04-05 03:54:03 -05:00
TheTiksiBranch
ce810cb993 Fix sets having/risking bad Z-Crystals (#4544) 2018-04-04 15:58:15 +04:00
Guangcong Luo
6474d7b511 New randbats joke pokemon: Stunfisk 2018-04-03 17:32:08 -05:00
Guangcong Luo
0b93a24e0f Revert "Random Battle: Change joke Pokemon (#4539)"
Didn't we go through this last time?
2018-04-03 17:10:49 -05:00
The Immortal
89b7f6d0cc
Random Battle: Improve movepool tracking 2018-04-04 01:40:48 +04:00
Kris Johnson
b43d63f2cd Random Battle: Change joke Pokemon (#4539) 2018-04-03 23:52:11 +04:00
Marty-D
fe48538793
Fix crash in Grudge 2018-04-02 21:41:23 -04:00
Marty-D
2c0b509d6c
Battle Factory: Fix Monotype Diancie set 2018-04-02 14:03:29 +00:00
MacChaeger
054c545c05 Fix Prankster interaction with bounced/encored moves (#4533) 2018-04-01 22:23:43 -04:00
Marty-D
ec5b568ded Add new event Pokemon 2018-03-31 16:20:13 -04:00
Kris Johnson
1e4285cbaf Battle Factory: Altaria is not PU (#4530) 2018-03-31 01:39:26 +04:00
Marty-D
a1edcb540c Battle Factory: Split Tapu Koko sets properly 2018-03-29 21:36:25 -04:00
Marty-D
6bc2ff160b Learnsets: Add missing Marill egg move 2018-03-29 21:35:23 -04:00
asgdf
b4a51985d9 Fix Protective Pads throwing errors in valid situations (#4527) 2018-03-29 15:06:21 -04:00
asgdf
913d126e17 Fix Rock Head throwing errors in valid situations 2018-03-29 02:24:51 -05:00
Andi Wang
6621b84efa Gen IV: Fix Disable/Encore interaction with switching effects (#4519)
Specifically, Healing Wish/Lunar Dance/Baton Pass/U-turn.
2018-03-27 22:30:23 -04:00
Quinton Lee
c799393710 Typescript data/ and config/formats (#4513)
Also removes Battle Factory methods accidentally re-added in d0a4a689a7
2018-03-26 09:50:51 -05:00
KrisXV
d0a4a689a7 Refactor data/ and mafia.js to for...of (#4490) 2018-03-23 18:51:52 -07:00
Marty-D
5ddfe6e8ae
Fix Instruct's interaction with stalling moves 2018-03-23 10:15:05 -04:00
The Immortal
36ec995df1 Random Battle updates 2018-03-22 19:22:16 +08:00
KrisXV
7d3d7a412d UU: Unban Mega Slowbro (#4509)
https://www.smogon.com/forums/threads/usum-uu-stage-6-2-voting.3630735/page-3#post-7728269
2018-03-21 23:31:05 -04:00
Marty-D
c74b2db39a
Battle Factory: Fix missing EVs and other typos 2018-03-20 15:27:16 +00:00
Marty-D
014f7b9c88
Battle Factory: Fix more issues
- Added missing Natures
- Merged identical sets
- Fixed other typos
2018-03-18 19:12:01 +00:00
KrisXV
0def52b71b Remove Torchic from LC Battle Factory (#4503) 2018-03-18 15:55:29 +08:00
KrisXV
2fed9e342e LC: Ban Torchic (#4502) 2018-03-17 23:22:04 -04:00
Marty-D
34b80a250e Add new event Pokemon 2018-03-17 21:18:25 -04:00
Marty-D
2ab87cda71
Fix Snatch interaction with Z-Powered moves 2018-03-17 21:41:34 +00:00
Marty-D
e80a645aef
Battle Factory: More fixes 2018-03-17 21:05:23 +00:00
TheMezStrikes
fb74440b19 Update bf alias (#4499) 2018-03-17 11:30:58 -04:00
Marty-D
dcc674352c
Battle Factory: Fix EV spreads and more issues 2018-03-17 15:25:51 +00:00
Marty-D
bcf17f9471 Move Gen 6 Battle Factory to its mod 2018-03-16 19:28:12 -04:00
Marty-D
0cdf2b7b10
Battle Factory: Fix some issues 2018-03-16 18:32:24 +00:00
Marty-D
1e601626eb
Battle Factory: Unminify 2018-03-16 17:52:01 +00:00
Marty-D
dc3f9bd0ab Fix Sky Drop interaction with Follow Me/Rage Powder/Snatch 2018-03-16 10:14:47 -04:00
Marty-D
303af33bc7
Fix Surf Pikachu gift 2018-03-12 23:28:48 +00:00
Matthew Glazar
81208685d1 Refactor some code to use sample
Mechanically refactor code which uses PRNG#random to calculate a random
array index to use PRNG#sample instead.
2018-03-12 05:53:33 +09:00
Matthew Glazar
6c2350f5b6 Refactor random indexes into sample function
Often, you just need a random item in an array. Throughout Pokemon
Showdown's code, there are many instances of the following pattern:

    let randomThing = things[this.random(things.length)];

Make this code easier to read by factoring the indexing into the
PRNG#sample function:

    let randomThing = this.sample(things);

Run the following sed script to refactor lots of code to use sample:

    s/\([a-zA-Z0-9.]\{1,\}\)\[this\.random(\1\.length)\]/this.sample(\1)/

This commit should not change behaviour. In particular, PRNG#next is
called the same number of times with the same number of parameter as
before this commit, and PRNG#next's results are interpreted in the same
way as before this commit.
2018-03-12 05:53:33 +09:00
KrisXV
fab3c855bc Battle Factory: Require Hail with Slush Rush (#4481) 2018-03-11 04:15:39 +08:00
urkerab
46f3683a3a Fix Z-Power behaviour while Transformed into Ultra (#4479) 2018-03-11 00:01:50 +08:00
The Immortal
94d7a42555 Random Battle updates 2018-03-10 22:58:56 +08:00
The Immortal
95b5a3410a
BF: Fix Sneasel EVs 2018-03-10 17:10:08 +08:00
Marty-D
c678014580
Update Choice locking for USUM
They fixed it so that ignoring the item allows other moves to be used. However, using another move, even one that isn't part of the moveset, before you've locked yourself into a move, locks you into that move until move selection happens again. For example, a Choice Specs Oricorio choosing to use Hurricane turn 1 but getting outsped by a Quiver Dance has it use Quiver Dance, then Hurricane fails (even if it doesn't know Quiver Dance). If it does know Quiver Dance it becomes locked into it, otherwise it can choose any move for use since the Choice lock breaks at move selection if you don't have that move anymore.
2018-03-08 10:44:14 -05:00
Marty-D
ca61471e50 Add new event Pokemon 2018-03-08 08:55:19 -05:00
The Immortal
85004a5f9a
Release Alolan starters' hidden abilities 2018-03-08 20:09:24 +08:00
Matthew Glazar
ddc85bf1f8 Random Battle: Refactor inverted randomChance calls
`!randomChance(_, _)` is hard to read. Clean up code which uses that
pattern by taking advantage of the following fact: `!randomChance(n, d)`
is truthy with the same probability as `randomChance(d - n, d)`.

Note: This transformation changes behaviour. Randomized teams with the
same PRNG seed might differ. The probability of each team is still the
same as before, however.
2018-03-08 20:11:33 +09:00
Matthew Glazar
674a995b0e Random Battle: Refactor some variable names
randomNum isn't a number anymore. Rename it to randomBool.

This commit should not change behaviour.
2018-03-08 20:11:33 +09:00
Matthew Glazar
df5988bacf Refactor some code to use randomChance
Mechanically refactor code which uses PRNG#random for booleans to use
PRNG#randomChance instead.

Take advantage of the following properties:

    random(x) < y        is equivalent to   randomChance(y, x)
    random(x) <= y       is equivalent to   random(x) < (y + 1), i.e. randomChance(y + 1, x)
    random(x) >= y       is equivalent to   !(random(x) < y), i.e. !randomChance(y, x)
    random(x) > y        is equivalent to   random(x) >= (y + 1), i.e. !randomChance(y + 1, x)
    random(x) === 0      is equivalent to   random(x) < 1, i.e. randomChance(1, x)
    !random(x)           is equivalent to   random(x) === 0, i.e. randomChance(1, x)
    Boolean(random(x))   is equivalent to   random(x) > 0, i.e. !randomChance(1, x)

This commit should not change behaviour. In particular, PRNG#next is
called the same number of times with the same number of parameter as
before this commit, and PRNG#next's results are interpreted in the same
way as before this commit.
2018-03-08 20:11:33 +09:00
Matthew Glazar
45a876917d Refactor random booleans into randomChance function
Often, you just need a random boolean. Throughout Pokemon Showdown's
code, there are many creative ways of requesting random booleans. For
example:

    if (this.random(10) < 3) {
    if (this.isWeather(['sunnyday', 'desolateland']) || this.random(2) === 0) {
    let shiny = !this.random(1024);
    if (uberCount > 1 && this.random(5) >= 1) continue;
    if (!this.random(3)) ability = ability1.name;
    } else if ((ability === 'Iron Barbs' || ability === 'Rough Skin') && this.random(2)) {
    if (typeof secondary.chance === 'undefined' || this.random(256) <= effectChance) {
    if (accuracy !== true && this.random(256) > accuracy) {

Enable these methods to converge by introducing the PRNG#randomChance
function. It accepts a probability and returns true with that
probability.

Run the following sed script to refactor many common patterns to use
randomChance:

    s/this\.random(\([0-9]\{1,\}\)) >= \([0-9]\{1,\}\)/!this.randomChance(\2, \1)/g
    s/this\.random(\([0-9]\{1,\}\)) < \([0-9]\{1,\}\)/this.randomChance(\2, \1)/g
    s/this\.random(\([0-9]\{1,\}\)) === 0/this.randomChance(1, \1)/g
    s/!this\.random(\([0-9]\{1,\}\))/this.randomChance(1, \1)/g

The sed script takes advantage of the following properties:

    random(x) < y     is equivalent to   randomChance(y, x)
    random(x) >= y    is equivalent to   !(random(x) < y), i.e. !randomChance(y, x)
    random(x) === 0   is equivalent to   random(x) < 1, i.e. randomChance(1, x)
    !random(x)        is equivalent to   random(x) === 0, i.e. randomChance(1, x)

This commit should not change behaviour. In particular, PRNG#next is
called the same number of times with the same number of parameter as
before this commit, and PRNG#next's results are interpreted in the same
way as before this commit.
2018-03-08 20:11:33 +09:00
Marty-D
42b3846c6c
Fix Jaboca/Rowap Berry activation 2018-03-08 01:45:47 +00:00
Marty-D
e5138993eb
Tiers: Add March quick changes 2018-03-07 14:47:39 -05:00
KrisXV
d257e0a243 Move Snorlax to DUber (#4465)
https://www.smogon.com/forums/threads/usum-dou-stage-2-suspect-voting.3629784/page-2#post-7708807
2018-03-05 22:39:09 -05:00
Marty-D
1cf2d70641 Add new event Pokemon 2018-03-02 12:17:02 -05:00
HoeenHero
3c47cbf87d Fix build 2018-03-02 14:47:57 +00:00
asgdf
e01d849440 Set source of ability change on Mummy activation (#4447) 2018-03-02 09:26:50 -05:00
LegoFigure11
e2dd0be1b8 BF: Multiple Bugfixes and Major UU Update (#4450) 2018-03-02 20:04:15 +09:00
Guangcong Luo
7b0f4f0ecc Fix typo in BF sets 2018-03-02 14:40:49 +09:00
Guangcong Luo
90c1c83aaa Fix glaring BF set issues
- ability: Aurora Veil
- Houndoomite -> Houndoominite
2018-03-02 14:33:34 +09:00
The Immortal
781b0119bc
BF: Fix Alola Ninetales 2018-03-01 18:01:54 +08:00
LegoFigure11
650317e626 Add Gen 7 Battle Factory (#4441) 2018-03-01 15:56:16 +08:00
Articuno-I
78f9e1cbb6 Remove floralhealing.isViable to match Heal Pulse (#4434)
I believe this will do what's requested in https://www.smogon.com/forums/threads/what-can-ps-do-for-you.3622358/page-5#post-7698629
In any case, this is the only real difference between Floral Healing and Heal Pulse, and therefore seems like it should be removed.
2018-02-26 15:16:34 +09:00
Zachary Perlmutter
37cf7c2a68 Add heal flag to Magikarp's Revenge (#4436)
Fixes #4432
2018-02-26 13:49:23 +09:00
The Immortal
716616f8a5
Heart Stamp is not viable 2018-02-23 21:01:15 +08:00
KrisXV
ac08f5b38f STABmons: Correctly restrict Wormadam (#4430) 2018-02-22 23:21:36 +09:00
KrisXV
611fdd2aa1 Mark various moves as viable (#4429)
Water Shuriken, Heart Stamp, and Searing Shot should be marked as viable
2018-02-22 22:55:55 +09:00
urkerab
4c39b18341 Include new Ultra Sun/Moon Pokémon in Challenge Cup (#4428) 2018-02-22 12:23:13 +08:00
The Immortal
e153dd4539 Random Battle: Improve Ultra Necrozma 2018-02-21 20:10:50 +08:00
The Immortal
ee3bb35dcc
Move Emboar to BL3 2018-02-21 05:42:37 +08:00
Marty-D
eea3d29161 Fix Weak Armor interaction with Mist effects 2018-02-20 09:39:29 -05:00
The Immortal
c1eb0a5072
Move Passimian to BL4 2018-02-20 22:29:11 +08:00
Guangcong Luo
b773b757d2 Unban Z-evasion from Evasion Moves Clause 2018-02-20 21:55:21 +09:00
Marty-D
7bf397fb55 Add Furfrou Trims 2018-02-19 10:46:40 -05:00
Marty-D
20917535e7
Put Pokéstar Smeargle with the other Studio things 2018-02-17 15:03:48 +00:00
Marty-D
d582cf2aad Make sure moves change category before Hustle 2018-02-16 22:06:25 -05:00
Marty-D
055666dc02 Fix recoil damage source 2018-02-16 22:02:35 -05:00
The Immortal
d52041f7eb Random Battle: Fix Electric-type Pokemon 2018-02-16 00:59:56 +08:00
urkerab
c5a98aa8dd Don't generate female Greninja-Ash in randbats (#4420) 2018-02-15 11:46:04 +09:00
The Immortal
4402c71423 Random Battle improvements 2018-02-13 23:56:42 +08:00
Marty-D
83eff3be2c Fix crash in Grudge 2018-02-11 17:54:18 -05:00
Marty-D
f553290890
Shared Power: Fix Sheer Force and Stench interaction 2018-02-08 14:52:37 +00:00
Marty-D
19b8baaf2c
Update Partner Cap Pikachu event 2018-02-07 15:18:21 +00:00
KrisXV
554213bddb Fix Battle Bond + Skill Link in Shared Power (#4407) 2018-02-06 22:13:56 -05:00
Marty-D
76f2aa3fdd Learnsets: Add VC ExtremeSpeed Dratini 2018-02-06 22:11:52 -05:00
Marty-D
3605c1f24f Add new event Pokemon 2018-02-06 11:16:43 -05:00
The Immortal
848a58a58b
Move Breloom to UU 2018-02-06 05:33:43 +08:00
Marty-D
cbe9d00864
Tiers: Add February quick changes 2018-02-04 14:45:35 +00:00
urkerab
30cd0b4125 Make Pressure work in Shared Power (#4398) 2018-02-02 23:15:05 -05:00
urkerab
2e05c876c8 Other Metagames of the Month February 2018 (#4395) 2018-02-01 22:08:53 -05:00
cant say
7a5f65743e Add Ultra Sinnoh Classic (#4391) 2018-01-31 22:05:58 -05:00
KrisXV
a4cf9f3ab1 Fix Mimikyu-Busted-Totem's tiers (#4390)
handled in https://git.io/vN7tU
2018-01-31 11:30:48 -06:00
urkerab
ef005d3076 Fix Protective Pads interaction with Spectral Thief (#4389)
Specifically, stat boosts gained are from the user, not the target.
2018-01-30 14:46:11 -05:00
Lionyx
981427ab6c Fix Mimikyu-Busted-Totem's tiering (#4387)
I'm not sure if it inherits its tiering from Mimikyu-Busted or Mimikyu-Totem, but the fact that either already inherit their tiering from Mimikyu seems to have made Mimikyu-Busted-Totem's tiering to "undefined" (http://www.smogon.com/forums/threads/bug-reports-v2-0-read-op-before-posting.3469932/post-7669587).
2018-01-30 11:06:58 -06:00
Marty-D
ad27420a1e Update Life Orb's interaction with OHKO moves 2018-01-29 19:46:11 -05:00
KrisXV
ac8c8e41a6 Fix Genesect and Clefairy's doubles tiers (#4384) 2018-01-29 07:22:12 -06:00
Guangcong Luo
4c0699abc6 Implement inputLog
A battle's inputLog is now stored separately from the output log. It's
not an exact log of inputs, but rather just a collection of the inputs
that resulted in the battle: a default choice expands to the choice
that was actually used, and the starting seed is logged whether or not
it was explicitly passed into the battle stream.

Fixes #4348

Fixes #3201
2018-01-28 21:23:06 -06:00
Guangcong Luo
1531b662c6 Refactor battle stream system
This contains a lot of minor refactors, but the main thing that's going
on here is that battle stream writes have been streamlined to be a lot
easier for others to use.

We even support:

    ./pokemon-showdown simulate-battle

which provides a stdio interface for anyone using any programming
language to simulate a battle.
2018-01-28 21:06:49 -06:00
urkerab
cdb12bd696 Fix last item handling (#4383) 2018-01-28 20:05:44 -06:00
urkerab
33c6033a5b Targets of the wrong type are immune to Synchronoise (#4381) 2018-01-27 18:10:11 -06:00
Guangcong Luo
a22d1d7b20 Fix doublesTier
Should now correctly display NFE and LC tiers.
2018-01-26 18:40:24 -06:00
KrisXV
aefa8c986a Add doublesTier (#4339) 2018-01-26 14:23:38 -06:00
cant say
28a5e005c0 Add UB aliases (#4379) 2018-01-26 08:51:53 -05:00
KrisXV
d31fd3e353 UU: Unban Mega Houndoom and ban Drought (#4377)
http://www.smogon.com/forums/threads/3627043/
RU doesn't want Drought banned:
http://www.smogon.com/forums/threads/3625382/#post-7664690
2018-01-25 22:11:10 -06:00
Marty-D
16b0dbfa71 Revert "Learnsets: Remove Crystal-only VC egg moves"
This reverts commit aebe3634cc.
2018-01-25 21:55:27 -05:00
Marty-D
a9e694e909 Revert "Learnsets: VC Celebi is unreleased"
This reverts commit 5be3eb4ac4.
2018-01-25 21:44:15 -05:00
urkerab
f0c93655c4 Fix Protective Pads mechanics (#4362) 2018-01-23 11:19:07 -05:00
Marty-D
2ca4259581 RU: Remove suspect test and ban Durant 2018-01-22 19:41:52 -05:00
Articuno-I
baa028a6fd Refactor twineedle.multihit to match doublekick (#4363) 2018-01-21 11:05:37 -06:00
The Immortal
e8d8a6f115 Random Battle: Improve Slaking 2018-01-21 23:52:51 +08:00
Guangcong Luo
bb0e00e0a8 Fix STABmons move legality checker 2018-01-20 02:07:25 -06:00
Guangcong Luo
aae46ffd46 Support checkLearnset in format rules
Fixes #4356
2018-01-20 02:05:21 -06:00
urkerab
396fda7adf Fix Z-Power interaction with called Status moves (#4291)
Latest research (http://www.smogon.com/forums/posts/7625046/) shows that although Z-Synthesis bypasses Heal Block, using Z-Copycat to copy Synthesis does not. (Z-Copycat on a damaging move does of course turn into a damaging Z-Move.)
2018-01-17 08:57:37 -05:00
The Immortal
97e83422bb Random Battle updates 2018-01-17 21:36:38 +08:00
LegoFigure11
2133190898 BSSF: Fix Aron (#4344)
Update Aron set and fix clause to allow it to be generated
2018-01-16 16:17:15 +08:00
Marty-D
6ab216aadf Add new event Pokemon 2018-01-14 09:47:22 -05:00
urkerab
56619ffa35 Simplify Magic/Trick/Wonder Room (#4337) 2018-01-12 19:26:10 -06:00
Marty-D
98fa2d4b1e
Update Helping Hand failure conditions 2018-01-12 19:50:14 +00:00
Kevin Lau
10b062955e Random Battle: Add more Knock Off (#4246) 2018-01-12 01:16:43 +08:00
urkerab
e3b8a37a0a Simplify Mud Sport and Water Sport (#4332) 2018-01-12 01:12:57 +08:00
Kris Johnson
3668b0a320 UU: Ban Ninetales-Alola (#4334) 2018-01-10 23:40:20 -06:00
Kris Johnson
3053bce174 Haunter and Gurdurr are PU by usage (#4330) 2018-01-10 17:02:17 -06:00
Kris Johnson
519f803e37 Kingdra is BL3 (#4328)
http://www.smogon.com/forums/threads/drastic-tier-shifts.3578584/page-2#post-6957897

It was BL3 before it moved to OU
2018-01-10 15:57:01 -06:00
The Immortal
68ca4d5b0f Random Battle updates 2018-01-10 16:44:28 +08:00
Kris Johnson
7972dfff5e January tier updates (#4327) 2018-01-09 22:37:06 -05:00
cant say
aa2533dc8e BSS Factory: Fix more Liquidation mistakes (#4315)
also fixed up some move slashing on gyarados
2018-01-08 22:42:30 -05:00
Kris Johnson
aaf918bcfa BSS Factory: Swampert doesn't learn Liquidation (#4314) 2018-01-08 20:27:46 -05:00
urkerab
99d682ca26 Change lastMove from a string to a Move (#4298) 2018-01-03 11:54:35 -06:00
cant say
7c0f4eda80 BSSF: Fix Kommo-o (#4306) 2018-01-03 15:16:11 +08:00
urkerab
fba65229cf Add Mind Blown to Damp's description (#4305) 2018-01-02 16:22:08 -06:00
Tristan Pink
4193fcff22 Update aliases.js (#4300)
Alphabetized z-moves and added some aliases:
-required moves (e.g. "zvolttackle" -> "Catastropika"
-required pokemon (e.g. "zmew" -> "Genesis Supernova"
-other aliases that follow suit of existing ones (e.g. "menacing" -> "Menacing Moonraze Maelstrom")
2018-01-02 10:24:04 -06:00
LegoFigure11
f8ba5329ac BSSF: Fix Crashes relating to Kommo-o (#4302) 2018-01-02 23:10:55 +08:00
The Immortal
74a5863a7c Update Other Metagames 2018-01-02 21:28:50 +08:00
urkerab
94efee424d Indicate when an item activates after it is consumed (#3979) 2018-01-01 14:15:32 -06:00
LegoFigure11
d27e20ac69 BSS Factory: USUM Update (#4297)
* BSS Factory: USUM Update

New Mons:
* Add Nagadel
* Add Blacephalon
* Add Stakataka
* Add Kommo-o
* Add Slurpuff

Updates to existing sets:
* Mimikyu
* Azumarill
* Hydreigon
* Lucario
* Cloyster
* Muk-Alola
* Araquanid
* Toxapex
* Tapu Bulu

* Remove extra {

* Remove extra {
2017-12-31 20:52:54 +08:00
Guangcong Luo
77e17eedce Add message for Switch Priority Clause Mod 2017-12-29 17:07:43 -06:00
urkerab
25fe89f45a Make Contrary Competitive/Defiant self-inflicted (#4276) 2017-12-24 23:29:59 -06:00
urkerab
2873bd8366 Remove an unused parameter from eatItem and useItem (#4210) 2017-12-23 21:36:51 -06:00
urkerab
9a236d5d84 Fix Throat Chop interaction with Z-Moves (#4272) 2017-12-22 10:47:00 -05:00
Marty-D
95e3b7f235
Update Minimize 2017-12-19 11:32:05 -05:00
Marty-D
63bec7bf32 Fix source of status for Flame/Toxic Orb
Relevant for Corrosion
2017-12-19 09:53:53 -05:00
Marty-D
2c9f8ba45f Fix multi-hit Mind Blown again
Went missing in
801883c53a
2017-12-19 09:51:40 -05:00
Marty-D
61fba165c8 Learnsets: Silvally can't legally be taught Fire or Water Pledge
Despite technically having access to all three, the Pledge tutor selects
the move based on the Pokemon, and it's always Grass because it's the
first of the three.
2017-12-18 22:57:37 -05:00
The Immortal
7f752b3d5d Random Battle: Add custom level for Dugtrio 2017-12-19 11:53:24 +08:00
Guangcong Luo
193e948592 Move crashlogger.js -> lib/crashlogger.js 2017-12-16 15:40:45 -06:00
urkerab
3648d0d611 Use zbroken minor for protection against Guardian of Alola (#4255) 2017-12-15 03:33:26 -06:00
Marty-D
3ff22dcf2f
Fix Mega Evolution behaviour 2017-12-14 12:43:39 -05:00
MacChaeger
8d571be74e Fix certain Abilities not being overwritten by most forme changes (#4245) 2017-12-14 11:45:12 -05:00
Marty-D
63b07a3e7c Fix Core Enforcer 2017-12-14 11:39:10 -05:00
Marty-D
6c6750b5b9 Fix moves for USUM Ver 1.1 2017-12-14 11:32:39 -05:00
The Immortal
d3b5f1cdcd Random Battle: Fix Scald/Hydro Pump check 2017-12-14 18:57:37 +08:00
The Immortal
1114121ac5 Random Battle: Improvements 2017-12-13 05:43:28 +08:00
The Immortal
1c6d98664a Fix Baton Pass clause 2017-12-13 05:28:49 +08:00
MacChaeger
fae30ca078 Dancer shouldn't activate after the battle has ended (#4240) 2017-12-11 16:21:01 -05:00
Zach Hartin
f4a66ba977 Add new aliases (#4239) 2017-12-11 11:49:06 -05:00
urkerab
dc3945ff86 Protect should not affect Clangorous Soulblaze's other target (#4237)
Closes #4232
2017-12-11 09:02:24 -05:00
MacChaeger
d2a419d2be Update Stomping Tantrum's description (#4231) 2017-12-10 16:18:53 -05:00
Guangcong Luo
958c5087fc Revert "Protect should not affect Clangorous Soulblaze's other target (#4230)"
This reverts commit e8a7fa98d5.
2017-12-10 02:26:29 -05:00
urkerab
2336bd7573 Make Leftovers/Black Sludge recovery happen during Grassy Terrain recovery (#3970) 2017-12-09 23:27:35 -06:00
urkerab
e8a7fa98d5 Protect should not affect Clangorous Soulblaze's other target (#4230) 2017-12-09 21:09:11 -06:00
Guangcong Luo
b14463d632 Ensure SpA and SpD match in Gen 1
I'm not entirely sure why we're maintaining the separation of SpA and
SpD, except for better support of possible OMs or custom games where
they could be different, I guess.

There are probably game mechanics that would be better supported if we
actually just unified SpA and SpD.
2017-12-08 21:17:39 -06:00
Guangcong Luo
bb598ed6c2 Add rule validator for format rules 2017-12-07 22:07:12 -06:00
MacChaeger
801883c53a Implement Stomping Tantrum (#4175) 2017-12-07 18:36:19 -06:00
urkerab
0aef595177 Fix this unnecessary reference to battle (#4221) 2017-12-07 14:29:11 -06:00
Guangcong Luo
53ee56ff3b Fix Mega Rayquaza mega evolution 2017-12-06 20:09:13 -06:00
Marty-D
f443d1a213
Fix Mega Evolution for Rayquaza 2017-12-06 17:57:10 -05:00
Guangcong Luo
6d3c78fca6 Fix typoes 2017-12-06 14:57:22 -06:00
Guangcong Luo
ead4ffff64 Sky Drop only makes contact on the way down 2017-12-06 12:05:42 -06:00
Marty-D
5be3eb4ac4 Learnsets: VC Celebi is unreleased 2017-12-06 10:48:58 -05:00
Marty-D
e0e8eed67b Add new event Pokemon 2017-12-05 17:35:17 -05:00
Guangcong Luo
c0da44c482 Refactor moveset -> moveSlots
pokemon.moveset is now pokemon.moveSlots, which is at least slightly
clearer about what it's doing (tracking move state, mainly PP).

Mostly, this gives a consistent naming scheme for `move` (a Move
object) vs `moveSlot` (a MoveSlot object).

This also refactors a lot of existing `moveSlot` accesses to be modern,
including using `for...of`.
2017-12-05 11:12:44 -06:00
Guangcong Luo
08d079037d Pass source effect of switches to client
We are now tracking source effects for switch actions, if they're
initiated by effects such as U-turn or Baton Pass. This will lead
to better messages client-side.
2017-12-04 19:14:13 -06:00
The Immortal
783b0b0553 Random Battle updates 2017-12-05 02:37:09 +08:00
Guangcong Luo
118bad3408
Add hint for Ion Deluge 2017-12-04 10:39:07 -06:00
Kris Johnson
88620a049b LC: Ban Aipom (#4207) 2017-12-03 13:44:14 +08:00
Guangcong Luo
f3dbfbe685 Refactor Decision -> Action
"Decision" and "Choice" were always kind of unclear, so Decision is now
Action. It should now be a lot clearer.

Actions are also now strongly typed.
2017-12-02 11:34:55 -06:00
Marty-D
dc7c46b427 Update Ability-changing effects
Fixes #3230, closes #3245
2017-12-02 11:37:36 -05:00
Kris Johnson
ddf66ace34 UU: Ban Kommonium Z and Scolipede (#4202) 2017-12-01 19:38:48 -05:00
Guangcong Luo
f36753f65b Further optimize Pursuit 2017-12-01 16:00:41 -06:00
Guangcong Luo
1ac2745c3e Refactor Pursuit hack
Pursuit no longer uses `moveThisTurn`, but rather `willMove`, which
involves significantly fewer Pursuit hacks.
2017-12-01 15:59:13 -06:00
Guangcong Luo
f4e535bbd6 Enforce consistent key spacing
This was previously not enforced because we used `:1` in too many
places, but those places seem to all be refactored out at this point.
2017-12-01 08:16:23 -06:00
Guangcong Luo
108eab72f0 Battles: Refactor futuremove
We're now passing a real Move object.
2017-12-01 08:01:11 -06:00
MacChaeger
9e69f16157 Fix Defog messages (#4198) 2017-12-01 07:41:24 -06:00
Marty-D
8e41dd75e4
Clarify Photon Geyser descriptions 2017-11-30 21:27:18 -05:00
Guangcong Luo
9bdf674d5f Refactor more tables to arrays
See #4079

Now we're just missing oldgens.
2017-11-30 19:40:16 -06:00
Marty-D
5a8e98d896 Make Ion Deluge fail all the time
Pending version 1.1
2017-11-29 13:33:41 -05:00
Kevin Lau
484f2a556b Random Battle: Tweak Lycanroc slightly (#4191)
- Lycanroc-Midday learns Drill Run.
- Lycanroc-Midnight learns Fire Punch.
2017-11-29 03:37:57 +08:00
Marty-D
3cd34bc8e0 Fix crash in Challenge Cup 2017-11-27 23:01:43 -05:00
Marty-D
7c738b6d42 Add CAP 23: Pajantom 2017-11-27 20:26:32 -05:00
The Immortal
752e006727 Random Battle updates 2017-11-27 22:47:49 +08:00
Kris Johnson
69f23fe73a Random Battles: Update movesets (#4189) 2017-11-27 17:16:11 +08:00
urkerab
b18d004959 Allow other legal forms in Challenge Cup (#4188) 2017-11-27 17:12:13 +08:00
urkerab
cebac2b5bb Dancer should activate during other two-turn moves (#4186) 2017-11-26 17:13:17 -05:00
Marty-D
3818165742
Fix Sky Drop interaction with first-turn effects
Sky Drop's effect of preventing the target from executing an action for the turn behaves much like the Shift command from Triples, as explained in 3d51664f30.
Thanks, DaWoblefet!
2017-11-26 14:17:45 -05:00
Marty-D
197e821e98 OU: Ban Naganadel 2017-11-26 11:33:49 -05:00
Marty-D
a41289c523 Learnsets: Remove Punishment from Murkrow
Head Smash Nosepass strikes again
2017-11-26 11:33:21 -05:00
Marty-D
792cbeaeab Update Gen 3 event Pokemon 2017-11-25 10:40:20 -05:00
Marty-D
5727d006af
Release Raikou/Entei/Suicune's Hidden Ability 2017-11-25 08:56:47 -05:00
Marty-D
aebe3634cc Learnsets: Remove Crystal-only VC egg moves 2017-11-24 20:13:54 -05:00
urkerab
802db51ea8 Use ModifyMove to handle Photon Geyser mechanics (#4179) 2017-11-24 18:54:56 -06:00
Guangcong Luo
022839335f Add Gen 2 Virtual Console moves 2017-11-24 18:51:32 -06:00
Marty-D
4c6b71f656 Gen III-IV: Fix Overgrow and friends 2017-11-24 12:40:26 -05:00
Kris Johnson
3a01ece652 Add Totem Pokemon (#4165) 2017-11-24 01:09:22 -06:00
Marty-D
ff16589722 Correct Photon Geyser mechanics 2017-11-23 22:47:20 -05:00
The Immortal
00ef15e5a3 Update Standard GBU and various Nintendo formats
- Add Team Preview to the Standard GBU ruleset
- Add Zeraora to the Standard GBU banlist
- Use Standard GBU for VGC 2018
- Move Dragon Cup so it’s not in-between the two Battle Spot formats
2017-11-23 14:54:25 +08:00
Guangcong Luo
aafee4393c Implement Dragon Cup 2017-11-22 13:09:00 -06:00
Guangcong Luo
eb6748048d Fix Magic Guard Mind Blown
Fixes #4172
2017-11-22 02:54:40 -06:00
The Immortal
6bd1c62519 Update Alola Pokedex 2017-11-21 23:57:41 +08:00
Marty-D
f849ea0415 Fix Mind Blown again 2017-11-21 09:32:06 -05:00
Guangcong Luo
cfcbbf19b6 Battles: |-mega| before |detailschange|
This mostly makes the mega evolution message more readable, especially
in Fast replays.
2017-11-21 07:49:05 -05:00
The Immortal
d0c4b57b5e Events: Add missing PokéBalls 2017-11-21 13:32:31 +08:00
The Immortal
40c49cc5c5 Random Battle updates 2017-11-20 19:18:13 +08:00
Guangcong Luo
0ca9243dc3 Rename USM -> USUM
Lots of consensus for this.

If BW2 is an issue (I feel like "follow what's most popular in the
community" is a better rule than "keep things consistent"); I'd
rather call it B2W2 than use "USM" literally anywhere.
2017-11-19 19:16:32 -06:00
urkerab
4142e59962 Implement Ultra Sun/Moon's Wide Guard Z-Move bug (#4166) 2017-11-19 16:23:40 -05:00
Guangcong Luo
34f80a7340
Fix Necrozma check in Same Type Clause 2017-11-18 21:43:40 -06:00
Marty-D
ed4708f176
UU: Unban Azumarill, Serperior, and Scolipede 2017-11-18 17:50:43 -05:00
Articuno-I
45308bf20d Account for Ultra Necrozma in Same Type Clause (#4162) 2017-11-18 16:01:48 -06:00
Marty-D
ebb274ed86 Update descriptions 2017-11-17 21:09:37 -05:00
MacChaeger
4d95bb2ed9 Dancer shouldn't copy moves that did nothing (#4101) 2017-11-17 17:41:34 -06:00
Marty-D
33be9cc5a5 Fix spread moves' self-boost behaviour 2017-11-17 18:13:19 -05:00
Marty-D
7dfca478fe
Fix Kommonium Z sprite 2017-11-17 17:35:53 -05:00
Marty-D
ee18392b57
Swap Ultra Burst messages 2017-11-17 13:37:50 -05:00
Marty-D
620cf04f27 Update Partner Cap Pikachu 2017-11-17 13:12:10 -05:00
Marty-D
5db32c382d Update event Pokemon 2017-11-17 13:10:02 -05:00
Marty-D
91712024ff Fix Mind Blown behaviour when multi-hit or multi-target 2017-11-17 11:00:58 -05:00
Spandan Punwatkar
2411b48c6e Add more aliases for Necrozma Formes (#4160) 2017-11-17 09:41:34 -05:00
whales
a555c8b48c Aliases: Add necrozmau for Ultra Necrozma (#4158) 2017-11-17 18:14:35 +08:00
The Immortal
a9f6e2ad9c Update Random Battle moves 2017-11-17 17:04:15 +08:00
MacChaeger
8a6b93855a Don't default to starting Necrozma-Ultra in its base forme (#4154) 2017-11-17 00:37:44 -06:00
Guangcong Luo
e716e9edc7 Implement Ultra Burst 2017-11-17 00:01:09 -06:00
Marty-D
9ea90b38d4 Add new event Pokemon 2017-11-16 23:36:41 -05:00
Guangcong Luo
e25eeb9eb0 Correctly validate Rockruff-Dusk 2017-11-16 21:45:24 -06:00
Kris Johnson
f2caefba9b Ultra Sun and Ultra Moon update (#4151) 2017-11-16 20:34:43 -06:00
urkerab
83632c0789 Flame Burst should damage target's allies even if it has a Substitute (#4082) 2017-11-16 16:58:20 -06:00
urkerab
e9303b1d1a Use this when it's a Dex (#4152) 2017-11-16 16:57:08 -06:00
MacChaeger
643615f45b Require something for all battleOnly formes (#4148) 2017-11-15 16:10:44 -06:00
TheTiksiBranch
686942c888 Update Useful Moves List (more) (#4126) 2017-11-15 15:59:24 -06:00
Guangcong Luo
26f5b6ba56 Add accents to Flabébé
Using Unicode combining acute accents allows the ID to remain
'flabebe'.
2017-11-14 04:48:23 -06:00
MacChaeger
06e03e3431 Parting Shot shouldn't switch if it doesn't change stats (#4105) 2017-11-13 22:23:20 -05:00
Kris Johnson
69cc3a7bf8 STABmons: Make ignorestabmoves a ValidatorRule (#4141)
Making `ignorestabmoves` a validator rule allows it to be added to
tournaments.
2017-11-11 13:18:45 +08:00
urkerab
c352ea70b2 Dancer should not activate while semi-invulnerable (#4137) 2017-11-09 22:55:25 -06:00
The Immortal
5d9944a0a7
Move Mega Latias to BL 2017-11-09 22:41:05 +08:00
The Immortal
6dd84698f5
Move Zoroark to BL2 2017-11-09 11:57:59 +08:00
Kris Johnson
28cb849c1d Manaphy is still OU (#4132) 2017-11-06 21:36:17 -08:00
Kris Johnson
15387188e6 November tier shifts (#4131) 2017-11-06 20:05:02 -08:00
MacChaeger
b0910de0a3 Variable healing moves should have fail messages (#4104) 2017-10-31 16:04:04 -05:00
TheTiksiBranch
79d033ad2e Add Magma Storm to Viable Moves (#4099) 2017-10-30 23:43:11 -05:00
Ridaz
7acc291fe2 Add Challenge Cup 2v2 alias (#4086) 2017-10-26 17:38:34 -05:00
Guangcong Luo
246dfa1da3 Refactor in-object-literal to array-includes (#4079)
Previously, if we wanted to test if A was either 'B' or 'C', we would use
the pattern:

    A in {B:1, C:1}

I actually don't know how common this pattern is; I just started using
it because I was tired of typing `A === 'B' || A === 'C'` all the time.
I never really liked it, though; the `:1` part made it kind of
blatantly a hack.

I did some testing and `['B', 'C'].includes(A)` is overall faster.

(A switch statement is around 20x faster still, but who wants to type
that much code?)

Anyway, the new standard is

    ['B', 'C'].includes(A)

Something something progress!
2017-10-23 09:19:15 -05:00
Marty-D
934fc5b40d Fix Z-Power behaviour while Transformed into Mega/Primal 2017-10-21 15:04:44 -04:00
Marty-D
312f93c47c Revert "Fix confusion interaction with HP-checking items (#4045)"
This reverts commit
6651c5dadb.
2017-10-20 21:05:49 -04:00
The Immortal
792f7e0162 Random Battle updates 2017-10-20 13:29:40 +04:00
The Immortal
b75d339db6 Move Mega Gardevoir to BL 2017-10-19 15:18:07 +04:00
QuiteQuiet
6651c5dadb Fix confusion interaction with HP-checking items (#4045) 2017-10-17 09:26:27 -04:00
The Immortal
0c5251ff26 Move Weavile to BL 2017-10-16 06:02:18 +04:00
Insist
bc2af390f7 Correct Tsareena's evolution condition (#4063) 2017-10-15 19:21:32 -04:00
Marty-D
df05e12f59 Correct confusion prevention messages 2017-10-12 09:36:41 -04:00
Marty-D
9ed34665ab Add new event Pokemon 2017-10-12 08:58:42 -04:00
Kevin Lau
b340edda02 Random Doubles: Update Necrozma (#4047) 2017-10-10 22:40:47 +04:00
The Immortal
252aaeaaa5 Guzzlord is NU 2017-10-07 19:27:18 +04:00
The Immortal
c2708ef14d Implement October tier shifts 2017-10-07 14:54:08 +04:00
MacChaeger
a759b8910b Fix Reflect Type vs. Pokemon with the "???" type (#4039) 2017-10-06 15:24:04 -05:00
The Immortal
c7ed07342c Update NU 2017-10-06 20:07:05 +04:00
MacChaeger
88965b39a4 Improve Ingrain's short description (#4040) 2017-10-05 10:22:11 -04:00
The Immortal
37720c0e97 Move Sharpedo to BL2 2017-10-05 02:43:43 +04:00
Ridaz
8aef13ae18 Update Encore & Fake Out move animations (#4035) 2017-10-03 18:57:05 -05:00
Marty-D
cb91464a49 Update Encore 2017-10-02 21:16:17 -04:00
Kris Johnson
5d13b92bc8 Fix -ate Abilities' interaction with type-changing moves (#4023) 2017-09-27 22:01:37 -04:00
Marty-D
9a35ee28e5 Clarify Stakeout description 2017-09-27 13:50:17 -04:00
Marty-D
c33dff68a0 Fix new Ability modifiers 2017-09-27 10:24:27 -04:00
The Immortal
58e3cf35db Random Battle: Update Groudon 2017-09-27 14:23:31 +04:00
The Immortal
fa3e1ba7f9 Move Jirachi to BL 2017-09-26 22:22:43 +04:00
The Immortal
465232da65 Random Battle updates 2017-09-26 22:22:25 +04:00
urkerab
34eade2e87 Simplify artificial replication of Item Clause (#4018) 2017-09-24 23:40:06 -05:00
LegoFigure11
ca0ed8c8de BSS Factory: Major updates (#4015) 2017-09-25 04:47:29 +08:00
Ben Davies
f0da576d11 Add Gengar alias Morfent's husbando
A very important alias no longer lost to time
2017-09-24 13:30:02 -03:00
Marty-D
a8413731dd Fix Choice-lock before attempting a move 2017-09-24 12:13:30 -04:00
MacChaeger
05cdd33542 Fix Dancer activation order (#4009) 2017-09-23 20:17:00 -04:00
Marty-D
78be53834a Add event Mimikyu 2017-09-23 09:02:56 -04:00
The Immortal
ee66ef2a4d Move Charizard to BL4 2017-09-23 20:12:25 +08:00
urkerab
804d0ea4a0 Remove some move effects to improve compatibility with Instruct (#4003) 2017-09-23 01:35:01 -05:00
Marty-D
c909fae032 Add new event Pokemon 2017-09-21 21:35:37 -04:00
Insist
e3157e36e1 Random Doubles: Fix typo (#3996) 2017-09-20 18:12:44 -04:00
Kris Johnson
36d10c0aa5 Aliases: Remove OU Theorymon (#3995)
OU Theorymon is no longer a format
2017-09-18 20:00:51 -05:00
Marty-D
e6f0f0efd7 Update Instruct 2017-09-18 19:36:52 -04:00
urkerab
c28347edda Fix choice lock for the combined Pledge move (#3993) 2017-09-17 19:47:35 -04:00
Marty-D
b365d3fea6 Update screen-related descriptions 2017-09-16 13:04:34 -04:00
Marty-D
977af547d6 Fix Aurora Veil 2017-09-15 20:47:14 -04:00
Kevin Lau
b617848319 Random Battle: Update Necrozma to its usage stats (#3983)
* Random Battle: Update Necrozma to its usage stats

* Update formats-data.js
2017-09-16 06:43:33 +08:00
The Immortal
68f636d2b2 Random Battle: Minor fixes
Closes #3976
2017-09-11 10:30:16 +04:00
Guangcong Luo
066d970b54 Fix >6-pokemon Custom Games 2017-09-09 19:41:55 -04:00
Guangcong Luo
b42a322ecb Support over 6 Pokemon in Custom Game 2017-09-09 18:25:26 -04:00
The Immortal
5e7d460149 More Random Battle updates 2017-09-10 01:08:51 +04:00
Marty-D
d704b90f5a Gen V-VII: Update move descriptions 2017-09-09 12:41:58 -04:00
The Immortal
e778ee0332 Random Battle: Improve Abilities 2017-09-09 16:07:52 +04:00
The Immortal
8eecbdb899 Random Battle updates 2017-09-09 01:59:11 +04:00
The Immortal
8a47ea6ad9 Mega Latios is OU by technicality 2017-09-08 22:30:28 +04:00
Marty-D
92ebb48e3e Remove now-redundant King's Shield check 2017-09-08 14:29:26 -04:00
The Immortal
6e98ba80aa Remove no longer needed format aliases 2017-09-08 19:44:05 +04:00
Guangcong Luo
36ce199e01 Add aliases
Added: reuni, pex, darm, chandy, zydoge, gene, camel, toed

(Also sort Pokemon aliases)
2017-09-08 09:58:53 -04:00
MacChaeger
0bd4924ed2 Random Battle: Improve ability selection (#3951)
If both options for the ability would be rejected, default to the better one instead of the worse one.
2017-09-08 17:09:29 +04:00
Guangcong Luo
52619d26ea Sim: Fix Thief Weakness Policy interaction 2017-09-07 09:43:16 -04:00
The Immortal
748305ec2b Modify weather abilities' ratings 2017-09-07 13:17:41 +04:00
The Immortal
3f4ac3a44d Random Doubles: Minor changes 2017-09-06 23:31:00 +04:00
The Immortal
68599fac72 Random Battle: Improvements 2017-09-06 23:00:40 +04:00
QuiteQuiet
7f026e7e60 Do not send details about shiny-ness on Team Preview (#3965) 2017-09-06 05:53:25 -04:00
urkerab
a76a462cd1 Perish Song shouldn't normally hit semi-invulnerable Pokémon (#3963) 2017-09-05 22:06:23 -04:00
Guangcong Luo
2923b94140 Sim: Moves may only be aura boosted once
Fixes #3952
2017-09-05 19:11:48 -04:00
Kris Johnson
00612798b2 Medicham was quickbanned from PU (#3962)
http://www.smogon.com/forums/threads/pu-tiering.3611938/#post-7498984
2017-09-05 19:05:20 -04:00
Guangcong Luo
0646743a6d Sim: Check Protect/etc before type immunities in gen 7
TryHit effects, like Protect, Lightningrod, Magic Bounce, etc now
activate before type immunities, rather than after.
2017-09-05 09:36:18 -04:00
Guangcong Luo
6921390955 Fix Z-Instruct
The moves it calls shouldn't be Z-moves.

https://www.youtube.com/watch?v=FRI5PSekhR4
https://www.youtube.com/watch?v=57leF8RuGOg
2017-09-05 06:09:10 -04:00
The Immortal
6ae32005ec Add UU and RU suspect tests 2017-09-05 12:45:14 +04:00
Kris Johnson
6c6b99694f September tier changes (#3954) 2017-09-05 12:35:45 +04:00
MacChaeger
6c51031bf3 Randubs: Minimize unused attacking stats (#3945)
* Randubs: Minimize unused attacking stats

This is mostly for Celesteela and Guzzlord so that Beast Boost doesn't increase a useless stat.

* Fix typo

* Fix weirder typo
2017-09-03 12:42:15 +04:00
The Immortal
2686b2da77 Update PU bans 2017-09-02 00:43:24 +04:00
The Immortal
f67701db9b Update OM aliases 2017-09-01 10:44:07 +04:00
urkerab
111c9ff071 Misty Terrain shouldn't -activate for secondary confusion (#3934) 2017-08-31 16:51:36 -04:00
MacChaeger
b113cc9a57 Add command /viewbanlist (#3914)
This command is intended to be a quick-access option for checking banlists and rulesets for formats as well as descriptions of the rules that would get listed in case the user has questions.
2017-08-31 04:51:45 -04:00
MacChaeger
7b82cc9549 Randbats: Celesteela doesn't learn Rock Polish (#3930) 2017-08-30 15:49:49 +04:00
Austin Bartnicki
373675df12 Ban Xurkitree from UU (#3924)
http://www.smogon.com/forums/threads/sm-uu-stage-3-voting.3613280/page-3#post-7488377
2017-08-28 03:16:20 +04:00
Marty-D
3e6ba18cd4 Fix Disguise interaction with substitutes 2017-08-27 18:48:25 -04:00
urkerab
5ea93dc11b Fix parameters to onAnyBasePower for Dark/Fairy Aura (#3922) 2017-08-27 14:45:15 -05:00
Marty-D
1f83604882 Update item descriptions
And remove redundant inheritance
2017-08-24 18:11:12 -04:00
urkerab
0ed87b755d Remove some ability effects to improve compatibility with Instruct (#3905) 2017-08-23 22:45:54 -07:00
Marty-D
389d10e636 Update Ability descriptions
And remove redundant inheritance from Gen 3
2017-08-23 20:25:50 -04:00
The Immortal
c73cb02431 Update PU banned Pokemon 2017-08-24 02:50:20 +04:00
The Immortal
4550f639ff Update NU 2017-08-23 07:45:05 +04:00
The Immortal
b62d9cb8f9 Random Battle updates 2017-08-22 00:39:17 +04:00
The Immortal
5eb04bdba1 Update RU 2017-08-22 00:05:29 +04:00
panpawn
12dd0a08b7 Aliases: Add 'uber' as an alias to 'Ubers' (#3894) 2017-08-19 15:07:18 -07:00
Marty-D
f44d948c2f Add event Alolan Exeggutor 2017-08-18 18:56:12 -04:00
The Immortal
b9d2f4fa0c Update PU 2017-08-17 02:00:52 +04:00
Austin Bartnicki
61a3094690 Added Aliases and Organized (#3840) 2017-08-14 14:42:56 -07:00
Marty-D
72f79870e3 Add new event Pokemon 2017-08-14 14:18:48 -04:00
Austin Bartnicki
4ee1554999 Add alias Fabio -> Ampharos-Mega (#3880) 2017-08-11 21:54:30 -07:00
Marty-D
b1de57b85a Add new event Pokemon 2017-08-10 10:05:11 -04:00
Archit Date
f6a3b41084 Release Diancite (#3874) 2017-08-10 15:32:45 +04:00
asgdf
8620fab0d4 Add ignoring Aurora Veil to Infiltrator's description (#3872) 2017-08-09 10:30:51 -04:00
HoeenHero
44536c0370 Correct Lurantis's pokedex color 2017-08-08 18:04:06 +02:00
Lionyx
d3c863c7dd Update the list of Abilities Trace cannot trace (#3694) 2017-08-07 23:14:11 -04:00
Marty-D
03eef2604b Release Altarianite, Ampharosite, Latiasite, and Latiosite 2017-08-07 22:44:32 -04:00
urkerab
1f6e1e8d45 Weakness Policy should activate before Thief or Magician (#3867) 2017-08-07 20:40:57 -05:00
The Immortal
c46f2f3d54 Move Manaphy to BL 2017-08-07 06:47:26 +04:00
Kris Johnson
17f0f43189 August tier updates (#3864) 2017-08-07 04:23:10 +04:00
urkerab
ce58237a15 Fix Unburden/Symbiosis interaction with Air Balloon behind Substitute (#3854) 2017-08-04 23:54:41 -05:00
The Immortal
015588d628 Move Conkeldurr to BL 2017-08-04 10:41:32 +04:00
Marty-D
702c029385 Fix -ate Abilities' interaction with moves 2017-08-02 20:17:02 -04:00
The Immortal
727a2e7dff Fix Normalize interaction with certain moves 2017-08-03 00:28:13 +04:00
Marty-D
312714343b Add new event Pokemon 2017-07-31 17:43:40 -04:00
urkerab
5bc0c634d6 Reset Parental Bond damage after a move (#3847) 2017-07-29 20:10:02 -04:00
HoeenHero
67cf1e2453 Fix monotype randbats (#3836) 2017-07-27 17:57:36 -04:00
Guangcong Luo
bbf7bc98d2 Fix random battle sets
(There were doubles sets in singles games)
2017-07-27 17:49:38 -04:00
The Immortal
23cb0d1955 Move Heracross to BL2 2017-07-27 23:35:06 +04:00
The Immortal
d0606f5cce Aurora Veil is viable 2017-07-27 14:12:32 +04:00
Kevin Lau
f519d444f6 Random Doubles: Implement EV fixing for Belly Drum, etc. (#3834)
Copied over from the Random Singles code, minus the Stealth Rocks check.
2017-07-27 03:34:28 -04:00
Marty-D
1206b24aff Add new event Pokemon 2017-07-26 21:14:21 -04:00
Guangcong Luo
0ba508bbd3 Support ./pokemon-showdown generate-team
I might regret supporting this syntax, but it's now possible to make
PS generate teams on the commandline using:

./pokemon-showdown generate-team [optional format name] [optional seed]

The output will be in packed team format (which can be pasted into
a teambuilder import box).

The seed-passing should make it significantly more straightforward to
debug team generation weirdness.
2017-07-25 02:59:59 -04:00
Guangcong Luo
3b4d8b3ff0 Split random-teams.js out of scripts.js
Random team generation scripts are no longer in scripts.js, but instead
in a new file random-teams.js.

The scripts are now also no longer run from inside battles, but in a
new team generator object. This makes it easier for external scripts
to generate random teams by running Dex.generateTeam(format).
2017-07-25 02:59:59 -04:00
HoeenHero
11b93ec467 Alola Pokedex rule: Dont reject alola formes (#3826) 2017-07-24 18:35:23 +04:00
n10sit
268fd70bc7 Random Doubles: Movepool updates (#3744) 2017-07-24 17:39:28 +04:00
The Immortal
d36ba3bf36 Random Battle: Shuffle Pokemon 2017-07-24 17:20:51 +04:00
Insist
83e89672a0 Add CAP LC and NFE to the Allow CAP clause (#3823) 2017-07-23 19:40:13 -04:00
Insist
b661ed9c90 Add "CAP NFE's" (#3821)
Turns out there is indeed some of these that are not LC but indeed CAP NFE's so I will make this a rank to clarify the difference and will make a PR on the client in tandem shortly
2017-07-23 13:48:56 -07:00
Insist
445c2f65d7 Make CAP LC CAPmons show as CAP LC (#3813) 2017-07-21 11:13:44 -05:00
Marty-D
1f983407e4 Release Aggronite 2017-07-21 08:29:53 -04:00
Guangcong Luo
d79e348ebc Refactor banlistTable -> ruleTable
PS's rule table has been renamed from banlistTable, and works a bit
differently now. It's a Map instead of an object now, and the keys
work a bit differently.

The original banlistTable was designed to store bans, and later
additions shoved rules and then unbans in there. The new table is
designed to support all of these.
2017-07-20 12:50:41 -05:00
HoeenHero
ee0e086c0e Dont use Dex in mods (#3803) 2017-07-19 16:58:18 -05:00
urkerab
217f3b34e3 Shields Down blocks Yawn when active and ignores Mold Breaker (#3799) 2017-07-17 18:48:24 -05:00
urkerab
3d3158b5a5 Fix mixup between moves and ids in Metronome (#3791) 2017-07-17 09:20:36 -05:00
The Immortal
9f659232ef Move Cofagrigus to BL3 2017-07-17 08:28:55 +04:00
Insist
df99c57fcc Magikarp's Revenge: Add steals boosts into desc (#3789) 2017-07-16 12:10:12 -05:00
urkerab
d651627755 Fix Metronome calling Gen 7 moves in Gen 6 battles (#3781) 2017-07-15 01:00:55 -05:00
Marty-D
0a4b75615d Add new event Pokemon 2017-07-14 08:45:43 -04:00
LegoFigure11
a7dbe96127 BSSF: Fix bug where Piloswine is named "Mamoswine" (#3780) 2017-07-14 01:50:00 -10:00
Slayer95
ccd5100987 Add Nincada to Hoenn Pokedex 2017-07-13 01:56:14 -05:00
Kevin Lau
24a945efca Random Battle: Add possibility for Fly-Z or Bounce-Z (#3730)
* Random Battle: Add possibility for Fly-Z or Bounce-Z

This involves adding Fly to some Flying Pokemon without a good Flying
STAB. (This also makes sure Fly is not their only STAB, and only exists
with setup.)

* Update scripts.js
2017-07-13 01:42:35 +04:00
Insist
6f2e33ceeb Aliases: Add more aliases (#3746) 2017-07-12 01:52:45 +09:00
urkerab
2a26e161e5 Typed Hidden Power should be Gen 2 (#3764) 2017-07-12 01:04:06 +09:00
The Immortal
1bb8a0a02f Move Buzzwole to BL 2017-07-10 01:38:24 +04:00
sparktrain
2f1b2e3442 Learnsets: Add missing CAP moves (#3754) 2017-07-09 14:51:32 +04:00
The Immortal
c553004006 Move Bewear to RU 2017-07-08 23:31:54 +04:00
The Immortal
0174aa770d Move Marshadow to Uber 2017-07-06 23:40:01 +04:00
Konrad Borowski
4a9e273433 Remove temporary Gen6 aliases (#3734) 2017-07-05 21:07:46 +04:00
Kevin Lau
a4e1b2692a Random Battle: Wormadam learns Bug Buzz in Gen 7 (#3729) 2017-07-05 17:38:26 +09:00
Kevin Lau
b167065d53 Random Battle: Update Swanna and Comfey (#3723)
Swanna has no use for Surf if it has Scald, even in Rain sets.

Triage and Draining Kiss should always be together. Give Triage a
rejection condition.
2017-07-05 01:17:00 +04:00
Marty-D
cda2993da4 Add event Alolan Vulpix 2017-07-04 16:43:20 -04:00
sparktrain
0901b435e6 Learnsets: Add missing CAP moves (#3728) 2017-07-04 23:46:36 +04:00
Marty-D
db88d65b2a Revert "Revert "Release Galladite, Gardevoirite, and Lopunnite (#3697)""
This reverts commit ff60a973e8.
2017-07-04 08:01:35 -04:00
jumbowhales
dab29dd208 Aliases: adds sssss with seven as a word (#3724) 2017-07-04 15:46:18 +09:00
Marty-D
c8da812411 Learnsets: Update CAP 2017-07-03 22:47:14 -04:00
sparktrain
85ac876e27 CAP: Update Persistent (#3722)
Persistent now affects Room moves introduced after Gen 4 as discussed here: http://www.smogon.com/forums/threads/cap-updates-fidgit-discussion-complete.3602772/
2017-07-03 15:24:16 -04:00
Ivo Julca
a83c149536 CAP: Fix typo in Kitsunoh learnset update 2017-07-03 10:38:56 -05:00
Marty-D
b51e138768 Add event Marshadow
Closes #3718
2017-07-03 09:33:48 -04:00
Marty-D
e4fd71c257 Update CAP with Gen 7 changes 2017-07-02 20:29:50 -04:00
The Immortal
eea92df840 Add NU bans 2017-07-03 02:51:01 +04:00
The Immortal
d314acc00d Random Battle: Change Infernape's moves 2017-07-01 22:56:13 +04:00
Marty-D
2815b3a6cb Give Magikarp's Revenge a Z-Move power 2017-07-01 10:14:12 -04:00
Marty-D
4f01e36845 Add event Arcanine 2017-07-01 10:13:27 -04:00
LegoFigure11
b0f82869e0 BSS Factory: Fix Weather restriction and update some sets (#3711)
Set alterations:
* Change SubCM Raikou EV spread from 4 HP / 252 SpA / 252 Spe to 220 HP
/ 52 SpA / 236 Spe
* Change LO Pheromosa from Hasty to Lonely
* Remove Hydro Pump from Scarf Greninja

Scripts alterations:
* Fix Weather restriction
* Remove unused resistance abilities
2017-06-30 20:52:35 +04:00
Marty-D
b6b9f4db81 Add event Victini 2017-06-30 08:35:35 -04:00
Marty-D
d929c97fab Learnsets: Fix Gen III tutor moves 2017-06-29 18:37:13 -04:00
Marty-D
ff60a973e8 Revert "Release Galladite, Gardevoirite, and Lopunnite (#3697)"
This reverts commit 4cc1f9c105.
2017-06-29 18:34:24 -04:00
Konrad Borowski
4cc1f9c105 Release Galladite, Gardevoirite, and Lopunnite (#3697) 2017-06-27 17:48:25 -07:00
Marty-D
a7abf9e88c Add event Turtonator 2017-06-27 16:51:39 -04:00