Commit Graph

7793 Commits

Author SHA1 Message Date
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
Marty-D
1937ef7467 Release Alola Cap Pikachu 2017-06-27 16:49:04 -04:00
Ivo Julca
fe34732592 CAP: Fix typo in Argalis' learnset 2017-06-25 03:12:32 -05:00
Slayer95
47641dc736 Gen 5: Update Bronzor family level-up moves to BW2 (#3690) 2017-06-25 09:41:34 +04:00
Kevin Lau
ebbb72d4de Random Battle: Update Armaldo, A-Dugtrio (#3628)
Armaldo is far too slow to utilize Swords Dance well, and only works on
dedicated Rain teams (which are very uncommon in Randoms).

Update item selection for Substitute and Reversal in combination.
2017-06-25 07:15:25 +04:00
Konrad Borowski
56a05a82b6 Rename Gen6 formats to have [Gen 6] in name (#3683)
* Rename Gen6 formats to have [Gen 6] in name

* Add Gen 6 format aliases for bots

Those will be removed later when bots will be updated to know
about new format names.
2017-06-24 01:51:06 -07:00
Kris Johnson
e2a8fd0135 Release Banettite and Cameruptite (#3680) 2017-06-23 10:02:25 +04:00
Marty-D
54067ecc06 Learnsets: Fix Gen IV tutor moves 2017-06-22 23:22:31 -04:00
urkerab
e7395c2228 Munchlax learns Superpower as a Tutor move in Gen 4 (#3677) 2017-06-23 06:16:18 +04:00
Konrad Borowski
a2583085c7 Mark Ash Pikachu events as Gen7 (#3673) 2017-06-22 04:42:31 -07:00
Marty-D
88e03486a8 Update Sheer Cold mechanics 2017-06-21 19:25:53 -04:00
EyanZ
b390befabd UU tier updates (#3667) 2017-06-20 22:29:25 +04:00
The Immortal
c6df06fb70 Move Exploud to BL3 2017-06-20 00:22:11 +04:00
Kevin Lau
6be947c0f8 Random Battle: Add Pursuit to Alolan Muk (#3659)
It's commonly used on its sets and can help with trapping.
2017-06-19 19:33:06 +04:00
Bär Halberkamp
961ffc3f9b Upgrade eslint to 4.x (#3657) 2017-06-18 22:37:43 -07:00
The Immortal
a1348e2f04 Random Battle: Prevent Scarf on weak Pokemon 2017-06-18 18:20:42 +04:00
Marty-D
6985f9af6d Fix Duskull's learnset 2017-06-17 15:51:01 -04:00
Marty-D
391ef77e66 Add event Steenee 2017-06-17 09:38:34 -04:00
Marty-D
1b8c56d483 Correct Precipice Blades description 2017-06-17 09:37:55 -04:00
Marty-D
d60c007f3d Update move flag descriptions 2017-06-17 09:36:52 -04:00
Marty-D
f35ce1a057 Release Kalos Cap Pikachu 2017-06-14 19:59:12 -04:00
urkerab
9709cc74dd Put LC Uber back in the Gen 7 tier list (#3585) 2017-06-13 22:53:16 -05:00
Jacob McLemore
51eb475f34 Fix Unaware Confusion interaction (#3530) 2017-06-13 21:40:37 -05:00
HiTechFlufi
7b7d551af1 Some New Aliases (#3566) 2017-06-13 21:39:33 -05:00
Garbodor
4bdb8c05b6 Add missing space in Wonder Room (#3631) 2017-06-13 12:53:48 -05:00
LegoFigure11
39d8197458 BSSF: Minor Set updates, code cleanup (#3625)
* Magnet Pull Magnzone now gets HP Fire 100% of the time
* Change Ditto's IVs to allow players to know it's Hidden Power at Team
Preview
* Dittos are now Sassy to give a better download matchup in the case of
a 'double down" - mirror matchup remains unchanged
* Removed weather restriction on Chlorophyll to bump up Venusaur usage
* Removed unused weather abilities

Also updated the link to the VR thread in the BSS format description
2017-06-12 19:30:03 +04:00
Kris Johnson
fbdf1b12af Update NU Banlist (#3623)
* Update NU Banlist

http://www.smogon.com/forums/threads/metagame-np-sm-nu-stage-0-beta-bring-the-noize-post-38-for-bans.3606077/page-2#post-7390115

* Create formats-data.js
2017-06-12 07:30:24 +04:00
Quinton Lee
5dea359d1d Rulesets: add Gen 6 Same Type Clause
Relevant for custom formats and requested by the Monotype staff.
2017-06-08 20:33:39 -05:00
The Immortal
85a674fb92 Update tiers 2017-06-08 16:36:21 +04:00
Kris Johnson
e9433523ee June tier updates (#3598)
* June tier updates

* Add NU (beta) bans
2017-06-08 16:17:59 +04:00
Marty-D
031363fd25 Release Abomasite, Manectite, and Tyranitarite 2017-06-06 08:43:28 -04:00
Marty-D
bc20c40722 Fix White Herb activation from Fling display 2017-06-05 11:15:49 -04:00
LegoFigure11
8521529717 BSS Factory: Fix illegal moveset and item clause (#3575)
Eevee only gets Celebrate from an Event, and thus Umbreon cannot have its HA or Egg Move (Wish) on a set that also has Celebrate.
Also fixes several items being left out of the item clause (Thanks Urkerab and DragonWhale)
2017-06-03 13:10:05 -04:00
cant say
2f267bb435 BSS Factory: Correct Greninja's ability (#3572) 2017-06-02 15:51:46 +04:00
The Immortal
f3e1097b99 Update OM aliases 2017-06-01 23:33:19 +04:00
Marty-D
4fada0ccfe Release Unova Cap Pikachu 2017-05-30 22:57:05 -04:00
sparktrain
a5453cb62b Fix Brattler's data (#3568)
Brattler's typing and ability slots should be consistent with Malaconda's.
2017-05-30 22:27:58 -04:00
Marty-D
1bf8df1ed1 Release Blazikenite, Sceptilite, and Swampertite 2017-05-30 08:43:29 -04:00
LegoFigure11
c3181ba6d1 BSS Factory: Bugfix and minor set updates (#3564)
Fixes a bug where Volcarona, Weavile, Whimsicott, Xurkitree and Zapdos never get rolled due to a misplaced }
Group Silvally, Ninetales, Rotom, and Thundurus formes to prevent them from being rolled more often than they should
Minor adjustments to some sets (guarantee Rock Tomb and replace Vacuum Wave with Bullet Punch on Sash Lucario)
2017-05-30 00:55:00 +04:00
LegoFigure11
176f0f8fc2 BSS Factory: Add alias, improve sets, bugfixes (#3563)
Now that we've had time to playtest a little, we're making some
improvments to the sets:
* Fix legality issue with Kantonian Ninetales having Encore
* Change Frustration -> Return on Pinsir
* Move 4 SpD -> 4 Spe on TWave Togekiss
* Slash EQ with Gravity on Gigalith
Fixed a bug:
* Fix bug where Silvally-Normal could never get called
and added an Alias:
* Added "bssf" as an alias for "BSS Factory"
* Also added "bsd" as an alias for "Battle Spot Doubles" (unrelated but
still needed doing)
2017-05-28 18:42:19 +04:00
Insist
3c1cd8b4e2 Magikarp's Revenge: Make it even better :^) (#3556) 2017-05-28 14:26:48 +09:00
LegoFigure11
4d382728d5 BSS Factory: Fix suboptimal natures (#3560)
Errors in initial file caused some natures to be invalid. These were replaced with `Serious` in the most recent commit, which is a suboptimal nature for these Pokemon.
2017-05-27 23:37:32 -05:00
Ivo Julca
586612ab9f Delete duplicate randdubs moves 2017-05-27 23:33:52 -05:00
Ivo Julca
3feec1d4fa BSS Factory: Fix invalid moves and natures 2017-05-27 22:43:22 -05:00
Ivo Julca
a87032ae8a Update names of Deep Sea (Tooth|Scale) to Gen 6+ format 2017-05-27 21:56:34 -05:00
Ivo Julca
4e543aee9e Implement Trace adjacency check 2017-05-27 20:43:24 -05:00
Slayer95
9165e883fd Fix Hackmons Cup EVs 2017-05-27 19:20:09 -05:00
LegoFigure11
04d23a9e54 Add BSS Factory (#3553) 2017-05-27 16:10:58 +04:00
t8bm
4cef9358c9 Fix Refrigerate modifiers (#3552) 2017-05-25 22:09:44 -04:00
LegoFigure11
805313338d Fix Gender randomisation in Battle Factory (#3551)
At the moment everything gets rolled as Male
2017-05-25 10:41:39 +09:00
urkerab
f24d7cbadb Move Illusion-breaking out of the battle engine (#3549) 2017-05-24 20:36:17 -04:00
asgdf
b4b42ce4ad Fix Z-Move mismatch when moves have 0 PP (#3539) 2017-05-24 20:36:00 -04:00
Insist
06ed00e2af Rulesets: Remove -ate clause (#3548) 2017-05-24 18:33:25 +04:00
HoeenHero
bcbc941907 Smeargle cannot sketch Z-moves (#3545) 2017-05-23 20:24:17 +04:00
Marty-D
32fc3711ad Fix Pursuit's interaction with Pressure 2017-05-22 12:42:31 -04:00
Marty-D
ce404af158 Update Cap Pikachu Natures 2017-05-16 19:12:54 -04:00
The Immortal
ea8390db91 Release Sinnoh Cap Pikachu 2017-05-16 20:37:55 +04:00
The Immortal
1b7656c201 Release Heracronite and Houndoominite 2017-05-15 17:31:12 +04:00
Marty-D
77e9053dfe Add new event Pokemon 2017-05-14 10:28:16 -04:00
The Immortal
74096adda8 Mega Metagross is Uber 2017-05-14 15:24:15 +04:00
GraillLord
fe9bf3c42f Fix two-turn moves behaviour with no target (#3523) 2017-05-12 14:56:26 -04:00
The Immortal
343c014358 Random Battle: Prevent recovery moves with Leech Seed 2017-05-12 14:55:49 +04:00
MacChaeger
bc8054167d Update Random Doubles (#3520) 2017-05-12 00:10:53 +04:00
Kevin Lau
f63e410d17 Random Battle: Alolan Golem cannot learn Sucker Punch (#3516) 2017-05-09 23:30:33 +04:00
Guangcong Luo
6dd58b40d3 Refactor simulator into new sim/ directory
This is a surprisingly minor refactor considering how many files it
touches, but most of this is only renames.

In terms of file renames:
- `tools.js` is now `sim/dex.js`
- `battle-engine.js` is now `sim/index.js` and its three classes are
  in `sim/battle.js`, `sim/side.js`, and `sim/pokemon.js`
- `prng.js` is now `sim/prng.js`

In terms of variable renames:
- `Tools` is now `Dex`
- `BattleEngine` is now `Sim`
- `BattleEngine.Battle` is now `Sim.Battle`
- `BattleEngine.BattleSide` is now `Sim.Side`
- `BattleEngine.BattlePokemon` is now `Sim.Pokemon`
2017-05-05 16:48:38 -05:00
Marty-D
9948a0123f Add new event Pokemon 2017-05-05 11:23:58 -04:00
MacChaeger
7a1d06f626 Update Random Doubles Battle (#3498)
* Update Random Doubles Battle (part 1)

* Update Random Doubles Battle (part 2)

* Update Random Double Battle (part 3)

* Fix Syntax (#26)

* Fix move id typos

* Improve movepools
2017-05-05 11:52:55 +04:00
Marty-D
508081ee32 Add new event Pokemon 2017-05-02 11:26:33 -04:00
The Immortal
a8b5f629df Release Hoenn Cap Pikachu 2017-05-02 19:17:00 +04:00
The Immortal
a017b74285 Random Battle updates 2017-05-02 13:45:09 +04:00
urkerab
e00c777158 Use Transformed species for Z-Move checks (#3495) 2017-05-01 23:43:15 -04:00
Spandan Punwatkar
7e4adeeebc Add new OMs of the Month (#3493) 2017-05-01 19:26:30 +04:00
MacChaeger
e2c07a6c6f Fix Perish Song + Soundproof (#3487) 2017-04-29 09:48:45 -04:00
Marty-D
8ab09a4aed Remove Laser Focus tag on end 2017-04-28 12:46:03 -04:00
Kevin Lau
4b9733b42d Random Battle: Enforce Liquid Voice as needed (#3489) 2017-04-28 10:17:26 +04:00
urkerab
cce9c4e2db Moves with no PP can't be turned into Z-moves (#3486) 2017-04-26 16:48:26 -07:00
QuiteQuiet
26d6a48156 Implement correct Perish Song mechanics (#3483)
- Liquid Voice + Perish Song will get absorbed by Storm Drain/Water Absorb
- Electrify Perish Song will trigger Lightningrod/Motor Drive/Volt Absorb
2017-04-26 19:29:27 -04:00
MacChaeger
aec8b293e8 Don't tie ability and item legality to a Pokemon's tier (#3484)
Previously, only CAP Pokemon were allowed to hold Crucibellite, even in CAP, and they've apparently been able to hold Berserk Gene and other Gen 2 items this whole time.
2017-04-26 11:19:29 -07:00
The Immortal
4b61a48dba Random Battle: Fix Linoone 2017-04-26 14:44:05 +04:00
The Immortal
45e4a2b474 Update RU 2017-04-26 10:03:33 +04:00
The Immortal
02ea84fd59 Random Battle: Ability improvements 2017-04-25 17:13:31 +04:00
Kevin Lau
8970beac69 Random Battle: Allow Belly Drum Gluttony (#3472) 2017-04-24 20:47:11 +04:00
MacChaeger
fa9090c38f Rulesets: Fix typo (#3479) 2017-04-24 19:44:26 +04:00
urkerab
a9fcf50fff Synchronise base formes and aliases (#3478) 2017-04-23 10:11:49 -04:00
MacChaeger
8e75649a10 Random Battle: Correctly handle Hidden Power and Baton Pass (#3469)
Previously, `moveid` would contain the specific type of hidden power such as `'hiddenpowerfire'`, but the switch statement would check for `'hiddenpower'`, and thus Hidden Power would never be rejected.
2017-04-22 13:01:59 +04:00
MacChaeger
9da05b8635 Refactor nonstandard banlists into rulesets (#3470) 2017-04-22 03:19:39 -04:00
Quinton Lee
6856055b7b Remove Magearna forme alias
The formes were split into separate Pokemon
2017-04-20 10:11:17 -05:00
MacChaeger
e22a504824 Random Battle: Update Mudsdale (#3462) 2017-04-18 15:18:17 +04:00
QuiteQuiet
ca35d354ab Fix Prankster Magic Bounce interaction (#3456) 2017-04-15 17:57:47 -04:00
Marty-D
feba315e31 Add event Bewear 2017-04-15 15:22:16 -04:00
Marty-D
76e5f1cba6 Update Original Cap Pikachu's Nature 2017-04-15 14:10:25 -04:00
Marty-D
f4df0f2312 Fix Roost interaction with Terrains 2017-04-15 14:09:25 -04:00
Marty-D
1b36e5b551 Release Original Cap Pikachu and Pikashunium Z 2017-04-14 12:19:32 -04:00
The Immortal
afe3341a53 Random Battle updates
- Increase Adaptability rating
- Remove Toxic from Mega Blastoise
- Update gen 6 with relevant changes from current gen
2017-04-14 16:53:11 +04:00
The Immortal
a14be5dc18 Unban Hawlucha from RU 2017-04-14 13:25:59 +04:00
Kevin Lau
062c8d87a9 Random Battle: Update Walrein (#3450)
Removed Substitute, added Super Fang. This mostly puts it in line with its
XY standard sets.
2017-04-12 23:07:45 +04:00
MacChaeger
a9de5080d2 Random Battle: Improve HP evs (#3445)
* Random Battle: Improve HP evs

This lets Zygarde-10% activate Power Construct in two subs, and also simplifies some unnecessarily complex code.

* Fix formatting (#19)

* Update scripts.js

It can't sub down to exactly half if it's got lefties, so don't give it less HP for no reason.
2017-04-11 05:34:38 +04:00
Marty-D
a85486e82b Correct loop in Analytic 2017-04-10 18:21:56 -04:00
Marty-D
d51ff82dde Fix Analytic 2017-04-10 16:20:32 -04:00
Kevin Lau
d190a9300b Random Battle: Do not give Choice Specs to Clear Smog users (#3444) 2017-04-10 14:28:48 -04:00
EyanZ
debb2da02f Update formats-data.js (#3443) 2017-04-10 18:57:15 +04:00
Kris Johnson
1ca9c85ef7 OU: Ban Pheromosa (#3440)
http://www.smogon.com/forums/threads/np-sm-ou-suspect-process-round-3-beauty-and-the-boost-pheromosa-is-now-banned.3599206/page-7#post-7306604
2017-04-08 22:19:04 +04:00
Marty-D
584e08c9dd Fix Color Change 2017-04-07 16:55:55 -04:00
The Immortal
2d9fbebcb6 Release Audinite and Medichamite 2017-04-07 10:48:27 +04:00
QuiteQuiet
73108f6a03 Fix Weather Ball Z-Move (#3432) 2017-04-05 19:37:22 -04:00
Kevin Lau
a59d7fdbc2 Random Battle: Support Light Clay Aurora Veil (#3422) 2017-04-05 15:06:51 -04:00
The Immortal
618456f909 Random Battle: Improvements 2017-04-01 16:06:14 +04:00
Spandan Punwatkar
d0d20df1fa Update OMs of the Month (#3419) 2017-04-01 15:59:33 +04:00
Marty-D
c5ad9762e4 Fix Core Enforcer interaction with substitutes
Closes #3388
2017-03-31 11:21:59 -04:00
Marty-D
a58c86eae3 Fix Final Gambit 2017-03-31 11:19:41 -04:00
Marty-D
1f2347493a Add dance flag 2017-03-31 10:36:17 -04:00
The Immortal
b89b1472b7 Move Talonflame to BL2 2017-03-30 16:54:25 +04:00
MacChaeger
8071f56c99 Fix Pokestar cosmetic forms (#3411) 2017-03-30 01:43:11 -04:00
Marty-D
5a8bbe2750 Learnsets: Remove accidental tutor move 2017-03-29 19:33:06 -04:00
Quinton Lee
d0b1efb096 Add missing Flarelm data 2017-03-29 17:47:16 -05:00
Marty-D
0d3f254e85 Split Magearna formes 2017-03-29 12:06:44 -04:00
Marty-D
856b41e5d0 Add cap Pikachu formes 2017-03-29 12:04:03 -04:00
CheeseMuffin
f764addd26 Fix Snugglow's name (#3410) 2017-03-29 11:56:09 -04:00
The Immortal
ecc769bfda Release Pidgeotite and Steelixite 2017-03-28 16:57:27 +04:00
Marty-D
42987bd03f Update CAP data 2017-03-27 19:55:05 -04:00
Marty-D
12002e6523 Implement CAP prevos 2017-03-27 17:54:14 -04:00
sparktrain
5c010911e7 Add Z-Move power for CAP signature moves (#3406) 2017-03-27 23:59:32 +04:00
The Immortal
2c69434bc6 Update BL2 Pokemon 2017-03-24 02:17:43 +04:00
EyanZ
d55796e3b1 Changes to UU (#3390)
* Update formats-data.js

* Update formats.js
2017-03-22 18:53:30 +04:00
Marty-D
c955328676 Update Telekinesis 2017-03-20 22:40:04 -04:00
Kris Johnson
9b75c6c58b Ban Vulpix from LC (#3374)
http://www.smogon.com/forums/threads/sm-lc-vulpix-voting.3598711/page-3#post-7278691
2017-03-20 08:32:48 +04:00
Marty-D
145897ff7f Fix Encore 2017-03-18 18:22:19 -04:00
Marty-D
8335212801 Add new event Pokemon 2017-03-18 17:05:47 -04:00
Guangcong Luo
698fb2ad9a Refactor choices
PS's choice system has now been majorly rewritten!

Battle#parseChoice has been eliminated, and Battle#choose is now a
very lightweight wrapper around the BattleSide#choose* functions, which
now handle validation.

Partial decisions have been mostly removed. You can manually construct
decisions partially with the side.choose* functions, but there's no
other support for them. Partial undo has been removed completely.

Choice tracking has been renamed from side.choiceData to side.choice.
side.choices has been removed and is now autogenerated from side.choice
when needed.

side.choiceData.decisions has been renamed side.choice.actions. In the
future, "decision" is a deprecated term and should be called "action"
wherever it shows up.

side.choiceData.waiting and side.getDecisionsFinished() have been
merged into side.isChoiceDone().

Other values in side.choiceData have either been rendered unnecessary
or renamed to something clearer.

The "skip" and "pass" choices have been merged together. Passes can
still be filled in automatically (so you can just use `/move 1` in
doubles when you have only one Pokémon left).
2017-03-17 23:14:52 -05:00
jumbowhales
ed7b23e374 Update Dark Void description (#3358) 2017-03-17 09:27:50 -04:00
Marty-D
3b8c74a01f Add event Tapu Koko 2017-03-16 21:10:41 -04:00
The Immortal
467ea589d9 Update BL2 Pokemon 2017-03-16 15:57:22 +04:00
MacChaeger
00d995e58d Hackmons Cup: EV limit is only in gen 6 (#3362) 2017-03-15 22:48:51 -05:00
Marty-D
5d5879c1c2 Add event Charizard 2017-03-15 11:19:26 -04:00
Marty-D
368e7b5aa2 End Illusion before preparing a Z-Move 2017-03-14 10:01:48 -04:00
Marty-D
c4048fd0bb Fix Genesis Supernova's interaction with substitutes 2017-03-13 23:28:12 -04:00
The Immortal
fc9cdf44f6 Random Battle updates 2017-03-13 08:54:43 +04:00
The Immortal
a7a4148abb Ban Azumarill from UU 2017-03-13 02:10:27 +04:00
urkerab
3dc35a5bf5 Multiple Dancers should be able to copy Dance moves (#3354) 2017-03-11 19:10:06 -06:00
Marty-D
ce04aafbbe Add event Pikachu 2017-03-11 09:54:27 -05:00
Marty-D
a8872cf8d7 Correct Nidoking's tier 2017-03-10 20:37:41 -05:00
The Immortal
81f73123b0 Move Suicune to BL2 2017-03-10 16:08:03 +04:00
The Immortal
4d88b22ce1 Update tiers 2017-03-10 08:18:09 +04:00
Kris Johnson
9c1ef46f90 Add tiers to Mega Beedrill and Mega Mawile (#3346)
All Pokemon/formes not released at the beginning of a generation should be OU by default unless specified otherwise by the OU council.
2017-03-08 02:41:20 +04:00
Marty-D
938f8f6aba Fix Perish Song's end-of-turn order 2017-03-07 11:02:23 -05:00
Marty-D
0789cdb4b3 Fix Struggle while Choice-locked 2017-03-07 10:37:37 -05:00
The Immortal
5d9e2467d1 Release Beedrillite and Mawilite 2017-03-07 09:03:47 +04:00
Marty-D
710458d626 Fix Throat Chop 2017-03-06 17:52:07 -05:00
Marty-D
c1036db6be Update Sheer Force and Shield Dust mechanics
Fixes #3339
2017-03-06 17:51:24 -05:00
The Immortal
ea54a424ce Rename Inverse Clause 2017-03-05 02:05:34 +04:00
Marty-D
7f96110699 Update Choice-lock mechanics
Presumably because of Dancer's existence, attempting to use another move
besides the Choice-locked move now results in the move being used but
failing immediately, with no PP loss. This applies even during Magic
Room, etc.
2017-03-04 16:23:55 -05:00
Kevin Lau
b72e437c3a Random Battle: Add Head Smash to Sudowoodo (#3332)
It can learn the move in Gen 7.
2017-03-04 22:43:47 +04:00
The Immortal
d7ba9dba3a EV limit is only in gen 6 2017-03-04 12:44:03 +04:00
asgdf
05b0887c35 Fix Switcheroo not removing statbar item note when no item received (#3329) 2017-03-03 23:29:50 -05:00
The Immortal
4e0901f3ea Rename Inverse ruleset
Inverse is currently used as an alias for Inverse Battle.
2017-03-04 00:04:24 +04:00
The Immortal
db513d04f2 Release Mega Mewtwo X/Y 2017-03-03 22:21:17 +04:00
The Immortal
6a929613bd Add Inverse ruleset
This allows tournaments to add the rule to any format.
2017-03-03 21:54:11 +04:00
xJoelituh
7cb9dfffa3 Release Mewtwonite X and Mewtwonite Y (#3318) 2017-03-03 13:46:45 +04:00
The Immortal
0ed8bb932b Update UU 2017-03-03 11:04:19 +04:00
Quinton Lee
51030de04d Fix Pokestar Smeargle validation 2017-03-02 23:01:02 -06:00
asgdf
6c4368500c Display Zygarde-Complete as Uber (#3314) 2017-03-02 13:52:52 -04:00
Spandan Punwatkar
6633d606b5 Add new OMs of the Month (#3309) 2017-03-01 23:37:35 +04:00
Guangcong Luo
fc16f4fe4f Hacked Z-moves can't be Z-boosted 2017-02-27 01:14:35 -04:00
Guangcong Luo
0bf08c2ad3 Fix calling Z-move names
e.g. Z-Sleep Talk would previously call Z-Taunt, when it should be
calling Taunt.

This was only ever a text error; it never used Z-Taunt's Z-effect.
2017-02-27 01:06:54 -04:00
MacChaeger
19b0b48ac0 Random Battle: Improve level balancing (#3293) 2017-02-26 04:37:38 +04:00
urkerab
1d4ac35d37 Simplify the way the factory tier is chosen (#3286) 2017-02-25 06:16:55 -06:00
Ivo Julca
55641c2635 Fix regressions in random team generation and improve comments
The regressions affected information handling
- Seeds used for random teams were no longer being logged.
- The seed used for generating p2's team was also used for the battle itself.
2017-02-24 20:18:59 -05:00
HoeenHero
1551ec0e98 Battle Factory: Fix issue with sides having different tiered teams (#3285) 2017-02-24 15:28:43 -06:00
Guangcong Luo
6306b5979f Fix infinite looping Dancer 2017-02-24 06:54:13 -06:00
Guangcong Luo
eeea7e3ed0 Fix Hidden Power validation 2017-02-24 05:13:44 -06:00
Guangcong Luo
bb7b168355 Fix crash in PRNG 2017-02-24 05:46:51 -05:00
The Immortal
e34318b518 Standard GBU: Fix undefined Pokemon name 2017-02-24 14:23:58 +04:00
The Immortal
f70d3cf1cc Standard GBU: Use format name for Soul Dew message 2017-02-24 13:49:28 +04:00
Guangcong Luo
8ee23475e4 Fix Dancer + Petal Dance
Dancer Petal Dance shouldn't lock. This is a horrible hack but it fixes
the problem. A real fix would involve refactoring basically all locking
moves. Which I guess I should do one day...

Fixes #2974
2017-02-24 03:25:00 -06:00
Guangcong Luo
9200062819 Improve Dancer implementation
This doesn't fix the biggest issue with Dancer (Petal Dance locking),
but it does fix every other Dancer issue, by moving it from useMove
to runMove.

This also adds improved comments on runMove and useMove.
2017-02-24 03:17:37 -06:00
Guangcong Luo
d9b431b7c2 Stop converting set values to names
Because of the way fastUnpackTeam works, it's currently a reasonable
assumption that all the values in a `set` are IDs, and various parts
of the code have started to rely on that assumption.

Removing some old code to try to guarantee that the values in a `set`
are names allow us to work towards a new guarantee that `set` values
are IDs.

Closes #2553
2017-02-24 01:38:45 -06:00
Guangcong Luo
d4a968cab5 Make Copycat fail to copy Baneful Bunker 2017-02-24 00:57:40 -06:00
Guangcong Luo
4052b28cec Refactor event validator
This is a huge refactor that consolidates many different places event,
DW, and VC moves are validated, so that they're now validated in the
single place Validator#validateEvent. DW and VC moves are now treated
as special cases of events.

Validator#checkLearnset now does zero validation of event, DW, and VC
moves; it now simply passes the list of possible sources back to
Validator#validateSet, and it's validateSet's job to determine if the
Pokemon meets the requirements for any of those sources.

(In addition to simplifying checkLearnset, this also means more
useful error messages if you fail to meet the requirements for an
event move or DW move.)

validateSet should also be a decent margin simpler, due to a lot of
its code being folded into validateEvent.
2017-02-24 00:38:47 -06:00
Guangcong Luo
97b0652b0d Unban Soul Dew in Gen 7 BS/VGC 2017-02-23 18:22:46 -05:00
Guangcong Luo
54df5c857d Validator: Support Gen 1 Virtual Console moves
This adds validator support for Gen 1 Virtual Console moves.

Fixes #3208

If anyone wants the quick-and-dirty eval script I used to update
Learnsets:

```
Object.entries(Tools.mod('gen1').data.Learnsets).forEach(([speciesid, lset]) => {
	Object.entries(lset.learnset).forEach(([moveid, sources]) => {
		if (sources.some(s => s.startsWith('1L') || s.startsWith('1M'))) {
			let newLset = Tools.data.Learnsets[speciesid].learnset;
			if (!newLset[moveid]) newLset[moveid] = [];
			let i = 0;
			while (i < newLset[moveid].length && newLset[moveid][i].startsWith('7')) i++;
			newLset[moveid].splice(i, 0, '7V');
		}
	})
})
```
2017-02-23 05:23:14 -06:00
Kevin Lau
05f34da175 Random Battle: Reject Sheer Force Conkeldurr (#3277)
Sheer Force only boosting one of its moves is rather mediocre compared to
Iron Fist boosting most of its moves, or Guts for even more raw power.
2017-02-23 02:04:28 -06:00
Dan Pantry
56ba782966 refactor PRNG to its own class
This removes the 'deterministic test' tools by preventing action at a
distance (namely, preventing the modification of the `init` method in
`Battle` during tests). This action at a distance is incredibly
confusing.

All this action at a distance did was discard any parameters that were
passed to `Battle` that weren't the first three (which was probably a
mistake by the original author) and also hard code `this.seed` and
`this.startingSeed` in `Battle`.

This functionality has now been moved to the `PRNG` class, so instead
users should pass a `PRNG` to `Battle` as the 5th constructor argument.
Users can also pass one as the third argument to `common.createBattle`
or use `common.createBattleWithPRNG` with the PRNG as the first
argument.

The PRNG is just an encapsulation of the pseudo-random algorithm in a
class. It is stateful, so make sure to take a `clone()` of the PRNG if
you want to re-use it.
2017-02-22 20:44:20 -05:00
Spandan Punwatkar
17665eb1e2 Update Ability Clause to also check for Variants (#3269) 2017-02-22 23:48:55 +04:00
MacChaeger
d30b75c9f0 Fix Typo (#3273) 2017-02-21 23:21:25 +04:00
TheRealQuote
7c7928d7c3 UU Changes (#3270)
Banning Victini and dropping down Staraptor as per this post: http://www.smogon.com/forums/threads/np-sumo-uu-stage-1-feels-like-we-only-go-backwards.3595341/page-2#post-7241566
2017-02-21 19:48:59 +04:00
Guangcong Luo
0c98319d2b Don't add "Z-" to "Extreme Evoboost"
This uses a better rule for detecting for whether or not a move is a
status Z-move.

Closes #3268
2017-02-21 01:12:11 -06:00
Guangcong Luo
6e4f1cfb35 Remove Pokestar learnsets
The Pokestar learnsets cause client build errors because they refer to
nonexistent Pokedex entries, so they need to be removed.
2017-02-20 03:21:40 -06:00
Kevin Lau
b8d1f0b45e Random Doubles: Use Wishiwashi-School for calculating Wishiwashi level (#3266) 2017-02-20 02:34:32 -06:00
Quinton Lee
b88b9a19cc Fix Smeargle forme name 2017-02-19 20:56:35 -06:00
MacChaeger
05a140b671 Add Pokestar Studios SFX props and actors (#3205) 2017-02-19 16:17:06 -06:00
MacChaeger
25b0e0aae3 Challenge Cup: Fix Wishiwashi's level (#3246) 2017-02-19 01:26:51 -06:00
Marty-D
8a3e4e5ac1 Fix Trace 2017-02-18 23:04:28 -05:00
HoeenHero
86f934f893 Update Pokedex colors (#3244) 2017-02-18 09:56:00 -05:00
Marty-D
cbfd339e0e Update move descriptions 2017-02-17 19:48:31 -05:00
Marty-D
c66ebaed3c Update Ability descriptions 2017-02-17 15:08:48 -05:00
Marty-D
019f844e0e Add event Machamp 2017-02-14 21:27:00 -05:00
Quinton Lee
72236f007f Fix Z-Move validation in Baton Pass Clause (#3213)
A Pokemon can only use 1 Z-Move in battle
2017-02-10 16:07:19 -06:00
Guangcong Luo
825b4180cd Fix Prankster/Dark hint info leak 2017-02-10 17:10:15 -05:00
The Immortal
1f5216898f Mienshao and Arcanine are UU
According to the updated UU stats
2017-02-10 15:19:54 +04:00
The Immortal
c118e517cd Update UU 2017-02-10 13:36:47 +04:00
Kevin Lau
41f4727df1 Random Doubles: Implement some Doubles sets (#3219) 2017-02-07 23:56:13 +04:00
The Immortal
63c8418f00 Update UU Pokemon 2017-02-07 22:35:25 +04:00
Kevin Lau
0ea4363cae Random Doubles: Fix Level Scaling for Parental Bond and Protean (#3216)
EV values are balanced now, so it's better to base it on the number of
attacks.
2017-02-06 21:50:08 +04:00
The Immortal
2c285f0166 Fix errors in previous commit 2017-02-06 20:00:48 +04:00
The Immortal
50074f0928 Update tiers 2017-02-06 17:28:36 +04:00
TheRealQuote
dbe2851420 Usage-based tier updates (#3212)
Kingdra moved from OU to UU
Scolipede moved from BL to OU
Charizard-Mega-Y moved from BL to OU
Clefable moved from OU to UU
Mantine moved from OU to UU
Salamence moved from BL to OU
Volcarona moved from BL to OU

http://www.smogon.com/forums/threads/initial-gen-7-uu-banlists-updated-in-post-38.3591784/page-2#post-7219329
2017-02-06 12:56:18 +04:00
urkerab
dc478871c4 Counter and Mirror Coat should honour Z-powered special moves (#3209) 2017-02-05 22:19:28 -04:00
Kevin Lau
7c252d7ff1 Random Doubles: Preliminary Overhaul (#3204)
Most ability checks are up to date with Random Singles, as are some of the
item checks.
2017-02-04 11:35:21 +04:00
Marty-D
687b3ae8b7 Fix multi-hit self-drop moves 2017-02-03 19:06:22 -05:00
Marty-D
b91dd35cc6 Update move descriptions 2017-02-01 20:45:47 -05:00
Marty-D
e51b5f1cce Fix multi-target self-drop moves 2017-02-01 18:11:33 -05:00
Kevin Lau
f466787851 Random Doubles: Switch to 84-all EV system like Random Singles (#3199)
EV generation is incredibly lopsided in random doubles and should be more
balanced.
2017-02-01 16:52:08 +04:00
The Immortal
53ef401c51 Prevent Spiky-eared Pichu and Cosplay Pikachu in Hackmons 2017-02-01 09:50:13 +04:00
The Immortal
efcbf79291 Update UU 2017-02-01 05:10:32 +04:00
cadaeic
45070569cd Refactor fainting from sacrificial moves (#3197) 2017-01-30 14:31:05 -05:00
Marty-D
b82a38d79c Clarify Spotlight descriptions 2017-01-29 22:55:44 -05:00
Kevin Lau
1c5eb528ca Random Battle: Add possibility of Flyinium Z to Talonflame (#3194)
With the Gale Wings nerf, it appreciates being able to use one additional
super-heavy priority attack before Brave Bird takes it below Gale Wings
range.
2017-01-29 19:26:59 +04:00
Kevin Lau
58c04078fe Random Battle: Remove Rock Climb from Lycanroc-Midnight (#3195) 2017-01-29 16:30:59 +04:00
Kevin Lau
8f9f7d2d1f Random Battle: Improve Sub/Reversal (#3193) 2017-01-29 15:43:13 +04:00
Kevin Lau
99283f5988 Random Battle: Update some Alolan Forme Pokemon (#3085) 2017-01-29 12:05:21 +04:00
Kevin Lau
49add7c36a Random Battle: Various Moveset Fixes (#3186) 2017-01-29 08:09:15 +04:00
Slayer95
7b7ec0846e Fix crash in Disguise effectiveness handler out of move sequences 2017-01-28 15:01:08 -05:00
Marty-D
f28a83c538 Add Oricorio and Lycanroc aliases
Closes #3192
2017-01-27 18:49:50 -05:00
Marty-D
88de7926a9 Add event Magikarp 2017-01-27 11:37:03 -05:00
Marty-D
385394bab4 Fix the first hit's effectiveness against Disguise 2017-01-27 11:05:46 -05:00
Marty-D
f14243f135 Fix Contrary and Simple's interaction with Z-Powered stat boosts 2017-01-26 21:34:42 -05:00
The Immortal
4e46b1f08b Random Battle: Update Pyukumuku 2017-01-26 23:59:54 +04:00
TheRealQuote
01a75b61a3 Changed Vullaby, Pawniard, and Ferroseed tiers (#3190)
Vullaby, Pawniard, and Ferroseed were listed as "new" which made them show up as Banned in the teambuilder for LC. If you want to add the "new" tag back in addition to LC that's fine, but this at least is a good fix atm that won't confuse people.
2017-01-26 23:55:20 +04:00
The Immortal
5990bddf72 Fix Shedinja's "events" 2017-01-26 13:52:37 +04:00
The Immortal
4309166f82 Move Breloom and Thundurus-T to BL 2017-01-26 12:17:33 +04:00
HoeenHero
91c737a6f6 Reflected moves shouldnt be boosted by Prankster (#3188) 2017-01-26 02:55:33 -05:00
Marty-D
4c2e0add57 Fix Grassy Terrain heal order 2017-01-25 14:09:28 -05:00
The Immortal
e60f225a7f Update Standard GBU
Only the base needs to be banned now.
2017-01-25 09:05:03 +04:00
The Immortal
ced6a88dde Pokemon Bank is released 2017-01-25 07:58:41 +04:00
The Immortal
45f16507c3 Revert "Learnsets: Pretend egg moves from Island Scan are tutor moves"
This reverts commit 557353ab61.
2017-01-25 07:50:17 +04:00
The Immortal
35f582c8bd Release Mewnium Z 2017-01-25 07:30:06 +04:00
DragonWhale
3f7a9d90ab Fix Ash Greninja not being banned on BS formats (#3185) 2017-01-24 03:02:38 -05:00
urkerab
66e7789067 Fix interaction between Burn Up, Powder and Primordial Sea (#3103) 2017-01-23 20:13:45 -05:00
Marty-D
d036d82328 Fix Dazzling and Queenly Majesty
Closes #3107
2017-01-23 20:12:25 -05:00
Marty-D
f0c8cd0aab Fix Switcheroo and Trick 2017-01-23 20:09:53 -05:00
Marty-D
0cd3e51786 Update Strength Sap 2017-01-23 20:03:31 -05:00
Kevin Lau
745d1daa6c Fix Minior Shields Down Message (#3108)
Adding the [msg] kwarg actually prevents the proper message from
displaying.
2017-01-22 23:58:54 -05:00
Kevin Lau
ab8a6ea9fb Random Battle: Improve move rejection for dual STAB issues (#3104)
Reject Hex entirely if Will-o-Wisp is not present, to prevent it on the
same set as Shadow Ball.

Reject Fire Blast with Flare Blitz.
2017-01-22 19:19:24 +08:00
The Immortal
354739235e Update BL 2017-01-21 08:56:52 +08:00
Kevin Lau
a033f35cc3 Random Battle: Update Bug-type Pokemon (#3099)
- All Bugs that learn Leech Life and had X-Scissor on their sets have
  X-Scissor replaced by Leech Life.
- Add Earthquake to Buzzwole and Armaldo.
2017-01-18 03:24:47 +04:00
The Immortal
2762f6623f BH: Add CFZ Clause
Closes #3100
2017-01-17 17:45:35 +04:00
Kevin Lau
28cf4bdb49 Random Battle: Remove some mediocre moves from sets (#3091) 2017-01-17 01:52:22 +04:00
The Immortal
2fea2881d4 Add new BL Pokemon 2017-01-14 23:33:38 +04:00
ScarfWynaut
46b4666fcd Random Battle: Prevent generating teams with too many Uber Pokemon 2017-01-12 17:49:21 +04:00
Marty-D
463677cdb7 Update Slush Rush
It doesn't actually grant immunity to Hail...
2017-01-11 23:06:17 -05:00
Marty-D
691a06b083 Fix Rocky Helmet faint order
SM 1.1 has arrived
2017-01-10 23:29:33 -05:00
Marty-D
7af1bac6d2 Update Quick Guard bypass check 2017-01-10 23:13:15 -05:00
The Immortal
374a080a9c Update BL Pokemon 2017-01-11 06:05:01 +04:00
The Immortal
b7cab47265 Random Battle: Prevent Psycho Cut with other Psychic-type moves 2017-01-11 06:05:01 +04:00
TheTiksiBranch
9a6c342faf Aliases: Add aliases for arceus/others (#3083) 2017-01-10 17:23:55 -08:00
Marty-D
1200dfa4f4 Update check for Z-Moves against protection 2017-01-09 22:40:15 -05:00
The Immortal
71e0250806 Random Battle updates 2017-01-09 22:17:45 +04:00
Kevin Lau
88475146d3 Random Battle: Reject Pursuit with Knock Off on non-Dark Pokemon (#3082) 2017-01-09 15:17:20 +04:00
The Immortal
a9f1a9290a Genesect is Uber 2017-01-08 23:17:11 +04:00
Guangcong Luo
ef3b4965ea Fix Z-move priority interaction
Priority Z-moves exist (namely, Gale Wings Supersonic Skystrike).

Quick Guard now partially protects against priority Z-moves.

Psychic Terrain now fully protects against priority Z-moves.
2017-01-08 01:44:35 -05:00
Kevin Lau
56160b18cf Random Battle: Add possibility of Z-Conversion (#3078) 2017-01-07 00:02:23 +04:00
Guangcong Luo
58865f6039 Add hint for Dark being immune to Prankster 2017-01-06 04:28:29 -05:00
Guangcong Luo
ba2879c58d Fix Twisted Spoon spacing 2017-01-06 04:28:18 -05:00
Kevin Lau
cd6ccba986 Random Battle: Reject Toxic with setup (#3075) 2017-01-05 23:49:47 +04:00
The Immortal
1b1a84d531 Remove 2v2 2017-01-05 23:25:28 +04:00
The Immortal
5ee3a3f64d Update UU/RU 2017-01-05 22:55:13 +04:00
The Immortal
7de758a64d Add BH Doubles alias 2017-01-05 20:48:09 +04:00
The Immortal
7fd24b3c73 Fix Mega Slowbro's tier 2017-01-05 19:48:11 +04:00
The Immortal
25299882a8 Random Battle: Set "Bank" Pokemon to UU level as well 2017-01-05 18:53:24 +04:00
The Immortal
983c40d955 Random Battle: Set "New" Pokemon to UU level
And remove unneeded levels because 75 is the default
2017-01-05 18:49:17 +04:00
The Immortal
f63e1ef5f5 Update UU 2017-01-05 18:49:17 +04:00
Marty-D
87e23444a2 Update Light Clay description 2017-01-04 21:24:57 -05:00
Ridaz
0d364ab4be Properly animate Spectral Thief (#3072)
In case of boosts, the attacking animation would play 1st, stealing the
boosts last, instead of the other way around.
This approach was chosen since Spectral Thief is the only move that
steals boosts this way, for now
2017-01-02 22:53:13 -05:00
Kevin Lau
e7feb63f6c Random Battle: Fix Various Issues with Ubers (#3069) 2017-01-03 04:56:01 +04:00
Marty-D
1aac19401f Fix Berserk 2017-01-02 14:47:04 -05:00
Marty-D
c7e160b3e5 Update Emergency Exit and Wimp Out 2017-01-02 14:42:25 -05:00
Tigerstar
eae92e2ff0 Update Embargo's short desc (#3065) 2017-01-02 14:39:26 -05:00
tmagicturtle
3fb25792e4 Implement EV training items (#3064) 2017-01-02 14:33:54 -05:00
The Immortal
42b2f5698d Add alias for Pokébilities 2017-01-02 04:56:17 +04:00
TheRealQuote
d2bfefe63d Banned Gothita and Drifloon from Gen 7 LC (#3068) 2017-01-02 04:48:43 +04:00
Ridaz
73f54c9752 Add Z-Move aliases (#3060) 2016-12-31 19:42:59 -08:00
The Immortal
1ab1e9177a Random Battle: Update Torkoal 2016-12-31 13:24:07 +04:00
Kevin Lau
207b966861 Random Battle: Update Tapu Guardians, Araquanid, Vanilluxe (#3052) 2016-12-31 13:23:34 +04:00
Guangcong Luo
9cc8f66ab5 Fix Taunt preventing Z-move activation 2016-12-31 02:31:09 -05:00
Marty-D
ff24df8637 Update event Pokemon 2016-12-30 14:36:13 -05:00
Marty-D
d83918bf1b Update Instruct 2016-12-30 14:14:49 -05:00
Marty-D
ef6f94da4a Fix Shell Trap 2016-12-29 19:10:17 -05:00
The Immortal
d8a29ecd4c Random Battle: Improve Primarina 2016-12-29 16:05:46 +04:00
HoeenHero
af0dd1594b Correct ag alias (#3054) 2016-12-28 05:44:09 +04:00
Guangcong Luo
bf4e3df3b8 Deprecate decision.targetSide/targetPosition
These are no longer used; we now only use targetLoc.
2016-12-26 17:12:40 -05:00
Guangcong Luo
b931969e11 Fix Z move and target tracking issues
Encore and Disable now fail when used against Z-moves.

Encore and Disable now no longer prevent Z-moves from being used.

Instruct now repeats the selected target location.

Instruct Pursuit now repeats the switched out target location, if
activated.

This refactor also simplifies some previously unnecessarily-complicated
code.
2016-12-26 16:53:10 -05:00
Guangcong Luo
0b887560cd Fix Z-status targeting
Z-status moves weren't targeting correctly. This fixes that and also
simplifies some code.
2016-12-26 16:48:15 -05:00
Marty-D
c5d7942756 Update Instruct 2016-12-26 14:43:38 -05:00
Marty-D
c017d11443 Update Rock Blast 2016-12-24 15:13:05 -05:00
Marty-D
521f682cc2 Update Heavy Slam interaction with Minimize 2016-12-24 15:11:33 -05:00
The Immortal
d70d7918de Random Battle: Prevent Facade with RestTalk 2016-12-24 22:49:46 +04:00
The Immortal
6e4a0dfbc8 Remove Baton Pass Speed Clause 2016-12-22 17:02:52 +04:00
Marty-D
c2005253fd Move Z-Power activation message 2016-12-20 09:40:27 -05:00
Marty-D
9859f190d5 Fix crash in Leppa Berry 2016-12-20 09:30:32 -05:00
Marty-D
33ec411967 Fix crash in Revelation Dance 2016-12-20 09:26:55 -05:00
Guangcong Luo
d1e20c2f6b Add alias fug -> Rayquaza 2016-12-20 03:54:21 -05:00
Marty-D
3c9d6c2687 Correct crit ratio boosting Z-Effect 2016-12-18 11:06:55 -05:00
DragonWhale
ef8c92b49f Ban Magearna from standard Battle Spot formats (#3037) 2016-12-18 10:43:08 -05:00
Marty-D
77cdde5cce Fix bounced Dark Void 2016-12-18 10:31:33 -05:00
The Immortal
1ebb5372ce LC: Unban Drifloon 2016-12-17 22:40:54 +04:00
Marty-D
d8ad3d9687 Fix Battle Bond 2016-12-17 13:14:53 -05:00
Kevin Lau
125d823f1f Random Battle: Update Zygarde (#3024) 2016-12-17 21:41:15 +04:00
Marty-D
01c005780e Remove Dark Void TODO 2016-12-17 12:23:32 -05:00
Marty-D
5638680a50 Reorder Spectral Thief's effects 2016-12-17 10:49:49 -05:00
Guangcong Luo
69f8302a3e Unban Greninja from Battle of Alola
Also support unbanlists in regional pokedex rulesets.
2016-12-16 18:31:47 -08:00
Marty-D
6bfdfa017c Add Burn Up message 2016-12-16 21:30:43 -05:00
urkerab
c1829acf64 Z-Memento and Z-Parting Shot should tell the client about the Z-power (#3029) 2016-12-16 18:23:54 -08:00
Guangcong Luo
2b2e024ca9 Fix Gen 7 Battle Spot formats
The hack of manually checking availability is no longer necessary, and
I have a better idea of exactly which checks still are necessary.

Battle Spot is now implemented a lot more cleanly, and a lot more like
how it was implemented last gen.
2016-12-16 01:38:23 -05:00
Marty-D
9b759c86c1 Update Wide Guard 2016-12-15 15:45:14 -05:00
Marty-D
6a726fb859 Add new event Pokemon 2016-12-15 15:15:17 -05:00
Marty-D
bc3413a8fa Update non-Instructable moves 2016-12-15 10:46:38 -05:00
Marty-D
f026acc43a Update non-Sleep Talkable moves 2016-12-15 10:24:54 -05:00
Marty-D
e1c43d4bb4 Properly fix Emergency Exit and related effects 2016-12-15 09:57:06 -05:00
Guangcong Luo
cfd1d0ab92 Fix Emergency Exit + Sitrus Berry interaction
If Sitrus Berry activates before switch-out, Emergency Exit shouldn't
activate.
2016-12-15 03:03:11 -08:00
Marty-D
557353ab61 Learnsets: Pretend egg moves from Island Scan are tutor moves
To be reverted once Bank is updated.
2016-12-12 21:34:57 -05:00
Marty-D
d6b00e46e6 Remove placeholder forme change messages 2016-12-12 19:56:29 -05:00
Marty-D
871cb25529 Learnsets: Correct SM tutor moves
Pledges and "Elemental Beams" were reversed
2016-12-11 20:38:45 -05:00
Marty-D
7a819f2e8e Flag Pollen Puff as a bullet move 2016-12-11 15:25:28 -05:00
panpawn
194ab29311 Move Cutiefly to LC Uber (#3015)
http://www.smogon.com/forums/threads/metagame-discussion-thread-cutiefly-is-banned-see-post-133.3587196/page-6#post-7131003
2016-12-11 23:16:55 +04:00
The Immortal
7b78576343 Move Landorus to Uber 2016-12-11 03:00:28 +04:00
The Immortal
d193803532 Sort Alola dex according to the actual order 2016-12-08 19:58:47 +04:00
Marty-D
0ef738bc03 Add more non-Instructable moves 2016-12-07 20:28:44 -05:00
Marty-D
5a567b1bbe Update unreleased items 2016-12-07 15:52:59 -05:00
Marty-D
3164f2c88d Fix Primarina's egg groups 2016-12-07 15:18:37 -05:00
urkerab
0de83fb7c0 Improve Burn Up's description (#3000) 2016-12-07 15:17:38 -05:00
The Immortal
92a9a8b9a9 Random Battle updates 2016-12-07 19:45:52 +04:00
Guangcong Luo
04cd89ab45 Support sending target in zmove data 2016-12-07 05:20:40 -05:00
Guangcong Luo
4586f0c91a Re-fix egg moves
Egg moves were accidentally broken in previous fix commit. This one
properly does them.
2016-12-07 03:46:43 -06:00
Ivo Julca
78972c41f0 Revert "Confusion still has a 50% self-hit chance"
This reverts commit 7d1ee5fecd.

There is even stronger evidence, from a trusted source, that the chance is now 1/3.
https://twitter.com/pokemon_PhD/status/788827888028151808
2016-12-06 23:50:07 -05:00
Guangcong Luo
a11f836fc0 Fix egg move learnsets
Project Pokemon gave a learnset file with egg moves for all evolutions.
The issue with Pikachu having egg moves listed that only Pichu gets was
fixed, but not the issue that Raichu has egg moves at all. That has
been fixed in this commit.
2016-12-06 19:16:46 -06:00
The Immortal
d3eed333a6 Disguise can't be Traced 2016-12-07 01:14:37 +04:00
urkerab
76dd2f9493 Simplify Mold Breaker clones by getting the move to ignore abilities (#2996) 2016-12-06 12:29:39 -06:00
Marty-D
9868e38da7 Fix Knock Off 2016-12-05 21:01:16 -05:00
Marty-D
c7ccb411a9 Fix Psychic Terrain 2016-12-05 18:40:20 -05:00
Guangcong Luo
5f351b2bf9 Ban Hypnosis + Gengarite with Sleep Clause 2016-12-05 14:33:28 -06:00
Marty-D
655bab4ca2 Fix Rocky Helmet faint order
Yes, this goes against their own regulations.
2016-12-05 11:11:37 -05:00
urkerab
ff2e33338a Mega Formes requiring unreleased Mega Stones should tier as Unreleased (#2989) 2016-12-05 00:42:09 -06:00
Marty-D
019a139956 Implement Comatose properly 2016-12-03 20:19:18 -05:00
Marty-D
66240f75e1 Implement new faint order 2016-12-03 11:33:00 -05:00
urkerab
8fc56be049 Don't burn attackers that hit after Beak Blast aborts (#2982) 2016-12-02 20:48:49 -05:00
The Immortal
977d676c9a Random Battle: Reject Liquid Voice without Hyper Voice 2016-12-03 03:53:44 +04:00
Guangcong Luo
9212dcc5e2 Porygon: LC -> LC Uber 2016-12-01 23:09:20 -06:00
urkerab
f2bbd08418 Stamina shouldn't trigger for self-confused damage (#2976) 2016-12-01 20:50:49 -05:00
Marty-D
c965d3fa20 Correct Cosmog line's genders 2016-12-01 19:54:46 -05:00
Kevin Lau
682e22e406 Random Battle: Add possibility of Gluttony Linoone (#2959)
With the buffs to the healing berries that confuse if a Pokemon has a
conflicting nature, it is now possible for Linoone to use them as a
substitute for Sitrus Berry, if it has Gluttony as its ability.

In Random Battles, natures are always neutral, so the any of the berries
will serve this purpose.
2016-12-02 02:13:50 +04:00
Marty-D
986d036e38 Fix Battle Bond description 2016-12-01 16:48:54 -05:00
The Immortal
e67db5eb19 Spectral Thief is unreleased 2016-12-02 00:24:42 +04:00
Guangcong Luo
3d5b9374c2 Type: Null isn't shiny locked 2016-12-01 13:24:08 -06:00
The Immortal
dc70b0c917 Add Gen 7 Doubles Custom Game and more aliases 2016-12-01 21:35:24 +04:00
The Immortal
232112d94f Fix Monotype Random Battle 2016-12-01 19:52:24 +04:00
The Immortal
4d8066c314 Add missing format prefixes and new aliases 2016-12-01 11:15:41 +04:00
The Immortal
4bcef0cdaf Update OMs 2016-12-01 06:19:35 +04:00
Marty-D
bc4eaf8084 Fix Beak Blast 2016-11-30 21:00:22 -05:00
The Immortal
4af7b41247 Fix remaining Greninja issues 2016-12-01 01:09:05 +04:00
The Immortal
850ab0f52e Random Doubles updates 2016-11-30 20:07:29 +04:00
Guangcong Luo
e2b82abe22 Aegislash is now banned 2016-11-29 23:45:58 -06:00
Guangcong Luo
d45414f2ec Fix Battle Bond Greninja
This introduces a new ability slot 'S' which corresponds to Battle
Bond only.

There's also a little bit of a hack to consider Battle Bond Greninja
Ash-Greninja for the purposes of move and event validation.
2016-11-29 23:17:20 -06:00
Marty-D
9fd654df45 Support Minior changing back to the selected Core color
Plus update Shields Down descriptions.
2016-11-29 22:09:14 -05:00
urkerab
4e100cc14e Defog should also remove Aurora Veil (#2965) 2016-11-29 19:22:12 -06:00
cometstorm
3dc466a3b2 Add aliases for Tapus (#2964)
Also ended up adding some common abbreviations for mons I'm always too lazy to type out + Nebby for Cosmog
2016-11-29 18:22:27 -05:00
The Immortal
ba0d40fb6d Allow Ash-Greninja without transforming in Hackmons 2016-11-30 01:10:05 +04:00
The Immortal
97f87190d1 Add Aura Break Zygarde event data
Fixes #2962
2016-11-30 01:02:07 +04:00
Spandan
1f452c34ee Add Volt Tackle as Tutor move (#2961) 2016-11-29 13:07:59 -06:00
The Immortal
59856dfe1e Increase Water Bubble rating 2016-11-29 20:07:54 +04:00
Ridaz
05ddaf1314 Add Ultra Beasts and more Zygarde aliases (#2958) 2016-11-29 17:10:38 +04:00
The Immortal
817236b0d3 Set Power Construct as Zygarde's hidden ability 2016-11-29 16:17:57 +04:00
The Immortal
d7434ecf97 Random Battle improvements 2016-11-29 16:17:57 +04:00
Marty-D
277d2e5e74 Update Z-Move short descriptions 2016-11-28 22:08:56 -05:00
Guangcong Luo
83b9e82fc7 Support calling Z moves
Z status moves like Z-Metronome and Z-Nature Power now correctly
transform called Physical/Special moves into the corresponding
Z move.
2016-11-28 20:26:28 -06:00
Marty-D
96db0117a8 Fix Corrosion interaction with Baneful Bunker 2016-11-28 18:32:31 -05:00
EienSeiryuu
f1505403f2 Fix Baton Pass and Evasion Clauses (#2957)
Also added the check to Baton Pass Speed Clause.
2016-11-28 05:11:41 -06:00
The Immortal
49b4eb47aa Random Battle updates 2016-11-28 04:33:58 +04:00
Ivo Julca
7d1ee5fecd Confusion still has a 50% self-hit chance
Hypothesis of chance=1/3 can be rejected at a 0.0005 significance level.
2016-11-27 19:11:58 -05:00
Marty-D
f2c3f18835 Add event Munchlax 2016-11-27 18:35:15 -05:00
The Immortal
6668779f55 Add Ash-Greninja event data 2016-11-27 22:40:24 +04:00
The Immortal
c6e3f24a30 Kingdra is available in gen 7 2016-11-27 22:16:50 +04:00
Marty-D
88ae3f4542 Check HP for new forme-changing Abilities 2016-11-27 12:58:22 -05:00
The Immortal
1993d54e8b Ash-Greninja is a separate Pokemon
It is a separate Pokemon in-game. It can’t learn egg moves, can’t be
bred, and can only have Battle Bond.
2016-11-27 21:49:26 +04:00
The Immortal
943d1dd59c Oranguru and Passimian have unreleased hidden abilities 2016-11-27 21:03:27 +04:00
Marty-D
f4dda34a08 Update Z-Moves interaction with protection 2016-11-27 11:58:38 -05:00
Ivo Julca
7ea4eeac5b Z-Moves: Various decisions fixes
- Z-Moves are always single-target, even if based on spread moves.
- Z-Moves cannot be selected if the base move has no PP.
- Z-Moves can be selected if the base move is disabled.
2016-11-27 00:27:49 -05:00
Kevin Lau
d49ce0eb64 Random Battle: Add new Oricorio sets (#2951) 2016-11-27 02:38:09 +04:00
urkerab
3046638c30 Remove line left over from Destiny Bond fix (#2953) 2016-11-26 17:20:39 -05:00
urkerab
7347086f6a Actually send correct -zpower minor (#2952) 2016-11-26 17:20:27 -05:00
The Immortal
ba814c5c01 Fix build error 2016-11-26 18:13:48 +04:00
The Immortal
8fc5c5714c Water Shuriken has 20 bp for Ash-Greninja 2016-11-26 15:21:34 +04:00
The Immortal
ef946414e8 Remove Pumpkaboo-Super learnset
This is unneeded because they are just level up moves. Having this
means adding exceptions in multiple places.
2016-11-26 14:08:51 +04:00
The Immortal
6bef707583 Random Battle fixes 2016-11-26 14:07:09 +04:00
Spandan
43dc6cdbd9 Fix Encore (#2950)
Encore should fail against Z-moves:
Encore will fail against a Pokemon that previously used a Z-move (LegoFigure11)
2016-11-26 03:37:47 -06:00
Ivo Julca
c3ddc324e0 Fix support of onTakeItem: false
Most onTakeItem checks were using an onTakeItem direct call anti-pattern,
which failed to account for the boolean case.
2016-11-26 03:34:41 -05:00
Ivo Julca
2f4aaa2824 Prevent Copycat from calling Z-Moves 2016-11-26 02:52:58 -05:00
Guangcong Luo
5e413c3bef Revert "Refactor Protect/etc, fixing Z move penalty"
This reverts commit fed4fefd85.
2016-11-26 02:31:29 -05:00
Guangcong Luo
b8f814cc90 Cut down Rotom learnsets
Rotom formes inherit their learnsets from Rotom, so they don't need to
be duplicated.
2016-11-25 22:20:01 -06:00
Guangcong Luo
fed4fefd85 Refactor Protect/etc, fixing Z move penalty
Protect is now implemented in scripts.js:runProtect, for slightly less
duplicated code.
2016-11-25 22:20:01 -06:00
Marty-D
3bcc51107f Fix confusion Berries for Gluttony 2016-11-25 20:54:53 -05:00
urkerab
a580d7706f Add various Z-move messages (#2947) 2016-11-25 20:24:35 -05:00
Marty-D
fe8fb30295 Implement new Stance Change order 2016-11-25 19:23:26 -05:00
Marty-D
17e146fc41 Stop future moves from being blocked by anti-priority 2016-11-25 17:28:27 -05:00
Marty-D
dc90744aa7 Fix confusion Berries activation condition 2016-11-25 17:25:47 -05:00
Ivo Julca
318ca6ae9f Fix Destiny Bond 2016-11-25 15:38:25 -05:00
Ivo Julca
a0601bdb73 Add MoveAborted event, to be run when move execution stops on BeforeMove 2016-11-25 15:23:52 -05:00
Ivo Julca
4e98fd0272 Berries that may confuse now heal 1/2 max HP 2016-11-25 15:11:02 -05:00
Ivo Julca
58693927f5 Make Water Shuriken hit 3 times at 1.3x as Ash-Greninja 2016-11-25 15:02:06 -05:00
Spandan
bf3913a624 Add Ability Aliases (#2946) 2016-11-25 12:26:52 -06:00
Ivo Julca
e45d4bbdac Fix turn order to account for abilities traced by Mega Evolutions 2016-11-24 22:44:27 -05:00
Marty-D
5e8a91371f Fix Disguise interaction with endure effects 2016-11-24 17:05:49 -05:00
Marty-D
f1f137af9c Actually fix Assist calling Z-Moves 2016-11-24 17:04:35 -05:00
Marty-D
70b7416ce4 Prevent some effects from occurring upon battle completion 2016-11-24 17:03:24 -05:00
Guangcong Luo
ff57e52d2e Fix Rockruff evo list 2016-11-24 14:13:37 -05:00
Marty-D
c94ee0b326 Update Big Root with Strength Sap 2016-11-23 22:37:25 -05:00
Marty-D
d768ee9ca1 Correct Purify description
Closes #2940
2016-11-23 22:37:05 -05:00
Marty-D
db06476c1f Fix Prankster immunity condition 2016-11-23 18:34:38 -05:00
Marty-D
9f81160698 Add bullet flag to Beak Blast 2016-11-23 13:56:38 -05:00
Marty-D
70ea33bcb8 Update unreleased Z-Crystals 2016-11-23 13:51:20 -05:00
The Immortal
ca56796250 Correct Silvally evoLevel 2016-11-23 18:47:33 +04:00
Guangcong Luo
4423659a11 Preliminary implementation of Battle Bond boost 2016-11-22 20:14:55 -05:00
Marty-D
70b98abcb1 Update protection-breaking with Baneful Bunker 2016-11-22 18:06:51 -05:00
Marty-D
35021489ae Support Mold Breaker-resistant Abilities 2016-11-22 17:57:16 -05:00
The Immortal
2869cf008d Random Battle improvements 2016-11-23 00:05:02 +04:00
Kevin Lau
41a063391b Random Battle: Give Fire-type Guts Pokemon a Toxic Orb (#2934)
Because they can't get burned.
2016-11-22 23:50:39 +04:00
QuiteQuiet
699b6e351d Add Minior and Magearna form aliases (#2932) 2016-11-22 13:09:48 -06:00
urkerab
e7f76f0756 Fix Burn Up's type test to work on the source, not the target (#2933) 2016-11-22 13:02:26 -06:00
Marty-D
3f9b0dd2d3 Fix Schooling animation 2016-11-21 21:05:30 -05:00
The Immortal
8ccfc5fc75 Pokedex: Fix incorrect data 2016-11-22 05:17:27 +04:00
Marty-D
e36a5f5d82 Clarify Prankster description 2016-11-21 14:38:09 -05:00
Jared Grady
6861d91620 Fix typo in prankster description (#2929) 2016-11-21 22:43:53 +04:00
The Immortal
5bb08c424d Fix LC banlist 2016-11-21 22:28:47 +04:00
The Immortal
6ef8fed674 Fix Rayquaza interaction with Z-Crystals 2016-11-21 15:37:42 +04:00
Kevin Lau
2ac0180c75 Random Battle: Implement remaining Silvally sets for all formes (#2928) 2016-11-21 14:41:26 +04:00
The Immortal
9dd94d3b46 Random Battle: Add more Silvally sets 2016-11-21 13:46:42 +04:00
Marty-D
97ce9964ee Fix Power Construct activation timing 2016-11-20 23:25:14 -05:00
The Immortal
3c0864a3df Random Battle updates 2016-11-21 02:50:26 +04:00
cadaeic
84bddcc3cd Flag Psychic Fangs as bite move (#2926) 2016-11-20 17:24:39 -05:00
Guangcong Luo
7d7caed285 Fix Missingno tier 2016-11-20 16:24:01 -06:00
Guangcong Luo
b6f89f6f7c Separate Bank from Bank-Uber in formats-data 2016-11-20 16:14:44 -06:00
Guangcong Luo
f4302b68eb Update formats-data for gen 7 2016-11-20 16:10:22 -06:00
The Immortal
ed1a20abaa Fix Normalize interaction with Z-Moves 2016-11-21 02:01:14 +04:00
The Immortal
b79204adb8 Prevent -ate abilities from affecting Z-Moves 2016-11-21 00:05:51 +04:00
The Immortal
2f4059b8ec Add event Type: Null to learnsets 2016-11-20 22:18:00 +04:00
HoeenCoder
8043a75ecf Type: Null is event only (#2923) 2016-11-20 22:12:51 +04:00
Marty-D
c321f03ea3 Fix Instruct calling itself 2016-11-20 12:58:48 -05:00
urkerab
7107de3716 Ash Greninja and Zygarde 10% and Complete should be Gen 7 (#2921) 2016-11-20 19:46:38 +04:00
urkerab
0e413e3633 Burn Up should change the user's type to ??? if it can (#2897) 2016-11-20 10:22:36 -05:00
urkerab
3aa8720282 Throat Chop should set its volatile silently (#2916) 2016-11-20 10:20:56 -05:00
The Immortal
c0a47359f6 Add Zygarde and Magearna event learnsets 2016-11-20 18:21:44 +04:00
Marty-D
cd000440ab Fix Assist check 2016-11-20 08:58:32 -05:00
HoeenCoder
b6c447d319 Add Zygrade event (#2920) 2016-11-20 17:22:38 +04:00
Kevin Lau
34e1472eec Random Battle: Fix Arceus item generation (#2919)
Z-Crystals don't affect Judgment's type, so an Arceus with Judgment as its
STAB should receive a plate only.
2016-11-20 02:30:38 -05:00
Ivo Julca
6dc9cb16ec Randbats: Adjust rate for Silvally 2016-11-20 02:27:23 -05:00
Ivo Julca
607c217d2f CC: Normal Arceus should not hold a typed Z-Crystal 2016-11-20 02:27:04 -05:00
Ivo Julca
9e46ee727e Set zMoveUsed flag only after the Z-Move could actually be used
Fixes issue when put to sleep before moving.
2016-11-20 01:31:39 -05:00
Ivo Julca
3a5348bfc9 CC: Fix rare issue of sets with illegal items being generated
Found via stress-testing with a test/simulator/misc/random-teams.js variant.
2016-11-20 01:10:45 -05:00
Ivo Julca
0a1fa67a5a Fix generation checks in random team generators 2016-11-20 00:52:36 -05:00
Kris Johnson
778c62dfee Prevent Z-moves from being called with Assist (#2918) 2016-11-19 22:57:04 -06:00
Guangcong Luo
ad8ef6c090 Merge/fix CC/HC random pokemon generation
Previously, the code was duplicated and buggy.

I have suspicions this doesn't fix it completely, but it should at least
crash a lot less and give more informative crash messages.
2016-11-19 23:49:33 -05:00
Guangcong Luo
202e47e1e7 Fix Prankster description to fit 2016-11-19 23:08:59 -05:00
Marty-D
581bd03d10 Fix Minior formes 2016-11-19 22:08:47 -05:00
panpawn
feb19fd339 Brionne's evolves to Primarina at lvl 34 (#2915) 2016-11-20 01:22:43 +04:00
urkerab
3cc3217aa4 Allow Hackmons Cup for past gens (#2913) 2016-11-20 01:22:09 +04:00
cadaeic
a83e7456cc Update Zygarde formes weight (#2914) 2016-11-19 16:03:25 -05:00
Ivo Julca
7fd8283600 Introduce requiredItems as an alternative to requiredItem
The list of acceptable items can always be retrieved from `requiredItems`.
2016-11-19 15:44:57 -05:00
Ivo Julca
00ced09ba3 Revert 4aaa3cb 2016-11-19 15:44:56 -05:00
Ivo Julca
4aaa3cb260 Move .templateRequiredItem to array everywhere 2016-11-19 15:23:42 -05:00
Marty-D
1ad4038070 Fix Battery modifier 2016-11-19 15:05:47 -05:00
Marty-D
17ea74ff34 Fix Battery's boost 2016-11-19 15:03:37 -05:00
Guangcong Luo
4abed0add6 Fix crash in random battles 2016-11-19 14:54:33 -05:00
Ivo Julca
b819467bf8 Fix activation message for Wimp Out 2016-11-19 14:46:45 -05:00
Ivo Julca
5af77b7018 Fix Wimp Out 2016-11-19 14:45:17 -05:00
Guangcong Luo
b9e32f1d29 Rename restoreboost to clearnegativeboost 2016-11-19 14:48:19 -05:00
Guangcong Luo
5d4184213f Thousand Arrows/Waves have been released 2016-11-19 14:48:19 -05:00
Slayer95
a3e3249a8f Spectral Thief should zero boosts despite of target abilities (#2906) 2016-11-19 14:38:54 -05:00
Marty-D
72b1a45034 Add unreleased Hidden Abilities 2016-11-19 14:21:57 -05:00
Ivo Julca
a09c0110b8 Destiny Bond: Add tests for exclusive counter and a minimal implementation 2016-11-19 14:17:08 -05:00
Marty-D
4f3fb707b4 Prevent Parental Bond from affecting Z-Moves 2016-11-19 13:49:46 -05:00
Marty-D
fd7a1a0a35 Fix typo 2016-11-19 13:21:02 -05:00
Marty-D
e7e133f397 Fix stat restoring Z-Effect 2016-11-19 12:56:40 -05:00
Guangcong Luo
df5a214d35 Kanto starter mega stones are released 2016-11-19 12:29:16 -05:00
Ridaz
d830ea97bd Add 'bite' flag to Psychic Fangs (#2907) 2016-11-19 16:25:29 +01:00
Marty-D
6186026acf Add Zygarde tutor moves 2016-11-19 09:41:34 -05:00
The Immortal
4e2e986e65 Fix Tapu Fini's Random moves
It can’t fall asleep…
2016-11-19 16:42:48 +04:00
The Immortal
009af7d5af Fix typo 2016-11-19 16:30:23 +04:00
The Immortal
30123c2d10 Update gen 7 ability ratings 2016-11-19 15:44:35 +04:00
The Immortal
ca665d83e9 Fix typo 2016-11-19 15:29:36 +04:00
The Immortal
0d2ed2db11 Make randomTeam work for multiple gens 2016-11-19 15:28:20 +04:00
The Immortal
838d047696 Update unreleased items 2016-11-19 15:12:59 +04:00
The Immortal
3111f6fe14 Make Wishiwashi-School battle only 2016-11-19 14:14:19 +04:00
The Immortal
15bea251f3 Update Challenge/Hackmons Cup scripts 2016-11-19 14:11:14 +04:00
The Immortal
2731e9f68c Prevent Metronome from calling Z-Moves 2016-11-19 13:56:31 +04:00
The Immortal
454bb4f66d Make Minior-Red battle only 2016-11-19 13:01:59 +04:00
The Immortal
d62d5a812f Make Mimikyu-Busted battle only 2016-11-19 12:46:09 +04:00
Ivo Julca
4a7b859128 Remove old megaevo decisions from queue on priority Pursuit 2016-11-19 02:54:53 -05:00
The Immortal
76e28eeab8 Add Zygarde10 event data 2016-11-19 11:40:49 +04:00
Guangcong Luo
b2393799c2 Suppress crash in mega evolution 2016-11-19 02:27:11 -05:00
Guangcong Luo
fff2df4dcb Fix gen 7 released/unreleased check 2016-11-19 02:26:42 -05:00
Guangcong Luo
81aad5f228 Update Baton Pass Clause 2016-11-19 01:45:43 -05:00
The Immortal
a29a9eeecc Add Alola Pokedex rule 2016-11-19 10:07:19 +04:00
The Immortal
20ca5c086b Add Random Battle moves for gen 7 Pokemon 2016-11-19 10:07:19 +04:00
The Immortal
94d735ac5a Anchor Shot is viable 2016-11-19 10:07:19 +04:00
urkerab
973e686350 Tentative damage modifier changes on -ate and -ize abilities (#2894) 2016-11-18 23:21:45 -06:00
The Immortal
d43b50ce83 Update moves viability 2016-11-19 06:49:56 +04:00
Ivo Julca
05dd8ce523 Spotlight redirects moves from foe rather than ally Pokémon 2016-11-18 21:05:00 -05:00
Ivo Julca
2884ff3b93 Fix Arceus sprites when holding Z Crystals 2016-11-18 20:54:32 -05:00
Ivo Julca
5b6705af51 Add support for array .requiredItem 2016-11-18 20:54:16 -05:00
Ivo Julca
78ab0bdf31 Implement Spectral Thief 2016-11-18 18:26:16 -05:00
Ivo Julca
c1b8aa52d2 Fix Z-Move single-use restriction 2016-11-18 18:26:16 -05:00
Konrad Borowski
c74ffd29e0 Mark more moves as viable (#2904)
This includes Leech Life, which got a huge power boost in Gen7
2016-11-18 14:41:42 -06:00
Ivo Julca
3736d546cb Implement Berserk 2016-11-18 15:28:11 -05:00
Ivo Julca
6f2dec617c Z-Moves cannot be instructed 2016-11-18 15:27:55 -05:00
Ivo Julca
fbc88c8428 Fix Emergency Exit: It should block Volt Switch effect 2016-11-18 15:10:51 -05:00
Ivo Julca
c2f8c72b38 Judgment should not change type from Z Crystals 2016-11-18 15:09:21 -05:00
Ivo Julca
c8a20970c9 Speed Swap deals with raw Spe stat 2016-11-18 14:05:30 -05:00
Ivo Julca
9d537e56f1 Add back activation message for Emergency Exit 2016-11-18 14:04:51 -05:00
Ivo Julca
e97ccb3d48 Emergency Exit activation quirks are similar to Eject Button and Red Card
In particular, it only activates after all hits in a multi-hit move are performed, and
it won't activate if the move is boosted by Sheer Force.

This commit also implements the interactions of Emergency Exit
with Eject Button and Red Card, and adds tests.
2016-11-18 13:55:57 -05:00
Ivo Julca
f2b5d74159 Store total damage across move hits as move.totalDamage 2016-11-18 13:55:57 -05:00
Marty-D
089c8ce3bb Make Ash-Greninja battle-only 2016-11-18 13:48:58 -05:00
Guangcong Luo
ebcad06ed7 Implement new Zygarde formes 2016-11-18 13:18:21 -05:00
Guangcong Luo
b3fcd903a2 Implement Silvally item requirements
Silvally formes now properly require the corresponding Memory item.
2016-11-18 13:18:21 -05:00
Marty-D
405ead0d12 Implement Ash-Greninja 2016-11-18 13:04:59 -05:00
Ivo Julca
5d04c4f2e0 King's Shield Atk drop now triggers even if immune 2016-11-18 12:48:50 -05:00
Ivo Julca
6b6de3e98e Hide Silvally's tping on Team Preview 2016-11-18 12:38:40 -05:00
Ivo Julca
ccccd1afa0 Implement Arceus' type-change immunities into Silvally
Tentative, based on http://www.smogon.com/forums/threads/3586701/page-37#post-7089082
2016-11-18 11:47:08 -05:00
The Immortal
42558bc6c8 Sort learnsets alphabetically 2016-11-18 17:40:11 +04:00
HoeenCoder
350e28b279 Fix crash in Wimp Out (#2903) 2016-11-18 16:08:05 +04:00
The Immortal
80d7cb2763 Fix crash 2016-11-18 15:58:09 +04:00
The Immortal
332ff1d49e Set Pichu-Spiky-eared to gen 4
And move eventOnly to the base data, for consistency.
2016-11-18 14:18:49 +04:00
The Immortal
49c5f9315c FormatsData: Add Alola forms 2016-11-18 14:16:54 +04:00
The Immortal
62b3219def Update Thick Club for Alola forms 2016-11-18 13:24:25 +04:00
Guangcong Luo
6bd05bed2c Fix specialized Z moves
Specialized Z moves like Catastropika etc weren't working correctly.

Also, the generic Z moves weren't changing category correctly.
2016-11-18 03:53:03 -05:00
Guangcong Luo
224cf25e46 Fix bugs in Z-moves 2016-11-18 01:46:56 -06:00
Ivo Julca
7b7092a450 Schooling cannot be removed 2016-11-18 02:44:54 -05:00
Guangcong Luo
8f7d189838 Implement Z-moves 2016-11-18 02:44:29 -05:00
Ivo Julca
c8308ccd89 Sheer Cold no longer affects Ice-type Pokémon 2016-11-18 01:53:24 -05:00
Guangcong Luo
83444b37e3 Add status Z-move data 2016-11-18 00:36:06 -06:00
Guangcong Luo
f62858b891 Add Z-move power data 2016-11-18 00:36:06 -06:00
Ivo Julca
5f68ee5495 Misty Terrain blocks confusion 2016-11-18 01:18:03 -05:00
Ivo Julca
b2d2569c6e Destiny Bond may fail if used successively 2016-11-18 00:59:34 -05:00
panpawn
516bc8c5c6 Fix build errors (#2899)
Usage of `var` is deprecated
2016-11-18 00:42:39 -05:00
Ivo Julca
511a45eb95 Implement immunity of Dark-types to Prankster
The immunity also applies to any moves, even non-Status, called by
other Prankster-boosted moves.
2016-11-18 00:35:52 -05:00
Ivo Julca
0c5f5b45c4 Unban Mawile-Mega from OU 2016-11-17 23:45:29 -05:00
Guangcong Luo
ae0abfb574 Gen 7 Challenge Cup 2016-11-17 23:41:11 -05:00
Guangcong Luo
acfeb39e7e Stub Z-move implementation
This is only the |request| half.
2016-11-17 23:41:11 -05:00
HoeenCoder
1503d5e8ac Add Emergency Exit and Wimp Out (#2898) 2016-11-17 23:07:57 -05:00
Marty-D
0d1581d4fa Fix exclusive Z-Move users 2016-11-17 22:15:29 -05:00
Marty-D
9ce2ae1aed Add Z-Crystal data 2016-11-17 22:08:10 -05:00
Ivo Julca
a1405e9c43 Gen 7: Turn order is decided by the ability and stats of the mega forme 2016-11-17 21:00:48 -05:00
Guangcong Luo
93b49845dd Add Magearna-Original 2016-11-17 19:05:54 -06:00
Marty-D
9612851ac3 Repurpose isZ tag 2016-11-17 19:55:54 -05:00
Marty-D
c96287e89f Implement Shields Down 2016-11-17 19:02:26 -05:00
Marty-D
1cc9bc4bf7 Fix Primarina's prevo 2016-11-17 18:40:19 -05:00
The Immortal
e19aa8b77b Add gen 7 beta formats 2016-11-18 03:37:55 +04:00
Marty-D
b5b7e07196 Fix Brionne's species 2016-11-17 18:37:34 -05:00
Marty-D
7258ad0ced Add new event Pokemon 2016-11-17 18:18:45 -05:00
Marty-D
339aa9d071 Fix Gen 7 egg moves 2016-11-17 17:37:43 -05:00
The Immortal
43c62a4e9c Add more gen 7 data & update tiers 2016-11-18 02:18:22 +04:00
urkerab
a33ed348dd Update terrain-sensitive moves for Psychic terrain (#2896) 2016-11-17 16:09:17 -06:00
Guangcong Luo
42a52bf773 Rearrange learnsets to proper order 2016-11-17 15:45:48 -06:00
Guangcong Luo
ad0973f883 Gen 7 learnsets! 2016-11-17 15:26:23 -06:00
Guangcong Luo
30989c13fd Update aliases
These aliases are the aliases used by Project Pokemon's learnset
export, so they're clearly in use.
2016-11-17 15:01:19 -06:00
Guangcong Luo
8931257098 Stub gen 7 learnsets
This is now the complete stub for gen 7 learnsets, removing Oricorio
and adding the Alolan formes.
2016-11-17 15:00:48 -06:00
HoeenCoder
cf1f723fa6 A few fixes (#2893) 2016-11-17 13:39:40 -06:00
Guangcong Luo
f01c1f8d01 Stub gen 7 learnsets
This will make it easier to reset any damage done by the import script
I'll plan to run momentarily.
2016-11-17 12:32:11 -06:00
Guangcong Luo
dd8248da66 Fix Necrozma's dex number 2016-11-17 12:28:03 -06:00
The Immortal
34da873ca0 FormatsData: Add gen 7 Pokemon 2016-11-17 21:42:41 +04:00
Marty-D
1d9feb363e Implement remaining Z-Moves
- Implement their tentative interaction with protection moves
- Make them unsketchable
2016-11-17 11:06:13 -06:00
Marty-D
5da62651ce Implement more new stuff and remove some TODOs 2016-11-17 11:06:13 -06:00
Marty-D
ceca7aaa2d Implement Silvally's type changing
Plus add support for Z-Crystals working with Multitype and Fling powers
with Memories.
2016-11-17 11:06:13 -06:00
Marty-D
2810aa78b0 Fix more new Abilities 2016-11-17 11:06:13 -06:00
Marty-D
916508f109 Update Water Bubble 2016-11-17 11:06:13 -06:00
Marty-D
fe5f510c55 Fix Alolan evolution paths 2016-11-17 11:06:13 -06:00
Marty-D
b066327f6a Implement new Pokemon and formes
TODO: Pikachu/Greninja/Zygarde
2016-11-17 11:06:13 -06:00
Marty-D
82d8aa2b81 Implement new items 2016-11-17 11:06:13 -06:00
Marty-D
9ace6d2391 Add Soul Dew change 2016-11-17 11:06:13 -06:00
Marty-D
fc410a4350 Fix a few new Abilities 2016-11-17 11:06:13 -06:00
Marty-D
18270f72c4 Add burn damage change 2016-11-17 11:06:12 -06:00
Marty-D
37c69a9498 Fix Litleo/Pyroar's gender ratio 2016-11-17 11:06:12 -06:00
Marty-D
84a6761a90 Revert Unaware change 2016-11-17 11:06:12 -06:00
Marty-D
263d3cda94 Implement new Abilities 2016-11-17 11:06:12 -06:00
Kevin Lau
4da02d5101 Sun/Moon: Implement preliminary aliases
Actual names as listed in the Showdown Pokedex are subject to change.
2016-11-17 11:06:12 -06:00
Marty-D
52184167b7 Implement new moves 2016-11-17 11:06:12 -06:00
Marty-D
83acbc578d Add preliminary Gen 7 changes 2016-11-17 11:06:12 -06:00
The Immortal
e65eed19a1 Random Battle: Minor improvements 2016-11-17 20:15:33 +04:00
The Immortal
ae09c2bdb5 Update Pokemon tiers 2016-11-16 12:51:44 +04:00
EienSeiryuu
4ba5a902e1 Monotype: Remove outdated Aegislash complex ban (#2888)
Previous code had an Aegislash complex banned from Steel teams hard-coded into Same Type Clause. This hasn't been part of Monotype for half a year and was conflicting with attempts to use "/tour banlist !aegislash" to allow Aegislash in Monotype battles.
2016-11-12 15:44:02 +04:00
urkerab
0c6e0b1661 Fix Cursed Body interaction with Doom Desire/Future Sight (#2881) 2016-11-06 17:47:14 -05:00
The Immortal
564c28f158 Random Battle: Improve special setup sets
This fixes Pokemon having two of the same type moves, for example
Fire-types with Fire Blast and Lava Plume or Psychic-types with Psychic
and Psyshock, because the Hidden Power was rejected.
2016-11-06 20:19:56 +04:00
Marty-D
4b2491eda8 Add new event Pokemon 2016-11-05 18:34:27 -04:00
The Immortal
21cd59d2f8 Random Battle: Improvements 2016-11-01 10:13:44 +04:00
The Immortal
bc49845604 Random Battle updates
- Improve Aerodactyl’s moves
- Make sure Dedenne has STAB other than Nuzzle
2016-10-30 01:58:47 +04:00
Guangcong Luo
893825a881 Properly display Baton Pass Speed Clause 2016-10-24 16:14:46 -05:00
QuiteQuiet
c300bcf9ce Fix minor information leak with Pursuit (#2852) 2016-10-24 16:23:12 -04:00
Guangcong Luo
7d8d47c97c Refactor BattleEngine
Battle is now an ES6 class... mostly... it's complicated.

Battle's inheritance system has always been a mess. I tried to redo it
in a sensible way but it caused nondeterministic test failures. Not
even kidding; different things would fail each time I ran tests, even
without code changes. I'll investigate closer later, but this refactor
makes it use ES6 classes with only a small amount of hacking, which is
good enough. It is, at the very least, simpler than the previous mess.

BattleEngine.Battle.construct has been renamed BattleEngine.construct.
2016-10-22 23:11:26 -05:00
Marty-D
b71e52c737 Update event Pokemon IVs 2016-10-20 22:59:58 -04:00
Guangcong Luo
6ffeea7851 Add alias "bss" -> "Battle Spot Singles" 2016-10-20 21:31:52 -04:00
Marty-D
225ce590d0 Add new event Pokemon 2016-10-20 16:15:36 -04:00
The Immortal
736598eaf3 Random Battle: Improvements
- Update moves for Cosplay Pikachu
- Prevent Protect with dual screens
- Lower Castform’s rate
2016-10-19 22:30:04 +04:00
The Immortal
f11cf66b03 Random Battle updates 2016-10-16 18:11:43 +04:00