Commit Graph

1074 Commits

Author SHA1 Message Date
Kirk Scheibelhut
4afdd7b947 Fix otherFormes capitalization in gen7/pokedex.ts 2020-04-29 23:31:45 -07:00
Kirk Scheibelhut
edddcb5c38
Correct Self-Destruct and Explosion base power (#6630)
As confirmed by SadisticMystic, base power cannot be above 255, so
this move data is clearly incorrect and results in downstream users
of the data files such as the Smogon or PS dex or the tooltips
displaying misleading information.
2020-04-29 14:59:59 -07:00
Kris Johnson
8b9f24e8c1
Remove redundant code from mods/gen1/pokedex.ts (#6629) 2020-04-28 22:17:07 -07:00
Guangcong Luo
800d8bd8f3 Remove Dex.getForme etc
The server now uses the same approach as the client of treating
cosmetic formes as real formes, as documented in `FORMES.md`.

This eliminates the need for the `.forme` and `.speciesid` properties
of `Pokemon`.

`pokemon.id` has also been removed: useful, since it turns out half
of its uses were bugs that should have used `pokemon.species.id`.
2020-04-28 17:38:54 -07:00
Guangcong Luo
42f949a0ed Remove egg group info from Gen 1 Pokédex 2020-04-28 16:25:35 -07:00
Guangcong Luo
bfe651bd12 Fix Gen 1 gender
It was apparently broken by the TypeScript refactor.
2020-04-26 17:52:06 -07:00
Kris Johnson
f7053eb7cd
Update Defog's description (#6624) 2020-04-26 16:27:43 -07:00
Guangcong Luo
c5faebd739 Remove extraneous properties from BasicEffect
BasicEffect always had a `status` property to support the pattern of
testing it to see if it's a move that sets status directly.

This is just a situation that TypeScript is bad at.

Another possibility would be to set `status: undefined` on PureEffect,
Ability, Item, and Species, but I think that's also ugly. Casting to
Move is probably the best approach, so that's what we do now.
2020-04-25 12:57:46 -07:00
Guangcong Luo
549ef7edb1 Fix MoveData interface definition
For historical reasons, move property definitions have been very blurry
across `EffectData`. Fortunately, recent refactors have made it
possible to put them all where they're supposed to be.
2020-04-25 12:57:46 -07:00
Kirk Scheibelhut
66e4bac94c
Give Struggle 10 PP in Gen 1 (#6609) 2020-04-25 09:53:58 -04:00
Guangcong Luo
31a81a91a2 Fix @type in .ts files
Some JSDoc type assertions failed to get converted during various .ts
refactors. This commit takes care of them.
2020-04-24 14:19:08 -07:00
Marty-D
e03d6e9020
Gen III: Remove obsolete code 2020-04-24 15:03:04 -04:00
Guangcong Luo
5d63b16d4d Fix botched merge in data/.ts refactor
The data/.ts refactor left a few .js files in, which weren't deleted
between 13 and 3 days ago:

c85f5bccb0

Because of this, the corresponding `.ts` files were considered new,
rather than renamed, and changes to the `.js` files got deleted rather
than merged.

Fortunately, this only affected `moves.js`, which has now been manually
re-merged with the changes.
2020-04-23 11:22:21 -07:00
Kris Johnson
28bf388b98
Typescript data (#6553) 2020-04-23 09:16:09 -07:00
Marty-D
4997963c8b Gen I & Stadium: Fix accuracy calculations 2020-04-19 15:02:04 -04:00
Nol
a3b8db05f7
SSB: Update several ranks (#6556) 2020-04-18 22:03:42 -07:00
Marty-D
d9d345d8df Correct power modifier priorities
Thanks @dawoblefet!
2020-04-18 20:33:13 -04:00
scoopapa
c32997cb51
Roulettemons: Update movepools (#6551) 2020-04-16 04:36:40 -07:00
Guangcong Luo
6884c7ee81 Remove unnecessarily quoted keys in data/
(By pulling this out from the rest of the TypeScript refactor, this
should make the diffs for the TypeScript refactor more readable.)
2020-04-16 01:32:18 -07:00
fart
9fda11310a
Fix activeMoveActions bug (#6570)
Bar Fight is supposed to act like Fake Out and only work on turn 1. This line added in this PR was missing from the runMove function, so Bar Fight and Fake Out were usable past turn 1.
2020-04-12 22:28:39 -07:00
The Immortal
af353fa46f Update BW LC 2020-04-12 17:16:12 +04:00
Kirk Scheibelhut
ca69c8e6e3
Fix Minior-Meteor forme not being allowed in Gen 7 (#6563) 2020-04-12 16:25:13 +04:00
The Immortal
c60df55907 Gen 6 Randoms: Fix Trick Pokemon
And remove outdated priority rejection.
2020-04-12 00:07:51 +04:00
The Immortal
b99c238b20 Gen 5 Randoms: Fix Medicham 2020-04-12 00:05:07 +04:00
The Immortal
5202df1921 Gen 5 Randoms: Fix NFE level 2020-04-11 10:20:00 +04:00
HoeenHero
3458bdd454 Gen 5: Normal Gem should inherit from base data. 2020-04-10 22:15:16 -04:00
The Immortal
e6682bfb07 Gen 5 Randoms: Fix Mandibuzz 2020-04-11 03:05:06 +04:00
scoopapa
86d8495522
Roulettemons move legality and update cont'd (#6540) 2020-04-09 11:46:15 -07:00
urkerab
d32aa6f8d6
Properly override onFractionalPriority in past gens (#6542) 2020-04-08 15:31:39 -07:00
scoopapa
5ba6b3ee2d
Add Roulettemons final pokemon (#6539) 2020-04-08 10:48:01 -07:00
The Immortal
8a38da0023 Delete Clean State Micro mod 2020-04-08 07:24:11 +04:00
charizard8888
d759fb1b0d
Add new PMOTS: Roulettemons (#6508) 2020-04-08 07:22:57 +04:00
Guangcong Luo
5abdb88e55 Refactor EventListener
Renames:
- .status -> .effect
- .statusData -> .state
- .thing -> .effectHolder

`thing` was always a really weird "I don't know what to call this"
variable name, but it's been renamed `effectHolder`, which should be
much clearer. `status` -> `effect` is I think the last remnant of old
PS code which called all effects "statuses". `statusData` -> `state`,
on the other hand, is the very first step in an initiative to calling
less things "data".
2020-04-07 17:05:19 -07:00
The Immortal
90b1597548 Gen 5/6 Randoms: Update levels 2020-04-08 02:06:37 +04:00
Leonard Craft III
dd566f3eeb
Ban Hidden Abilities unreleased in VGC17 (#6533) 2020-04-06 21:39:42 -07:00
The Immortal
634658a5ba Refactor unreleased Pokemon
Pokemon that are not available in-game are now consolidated into `isNonstandard`. 'Past' indicates that the Pokemon no longer works in the current generation. 'Unobtainable' indicates that the Pokemon works but can only be obtained through hacking.
2020-04-06 20:53:03 +04:00
The Immortal
78fde78f19 Refactor unavailable moves
Moves that are not available in-game are now consolidated into `isNonstandard`. 'Past' indicates that the item no longer works in the current generation. 'Unobtainable' indicates that the item works but can only be obtained through hacking.
2020-04-06 20:26:10 +04:00
The Immortal
441d2961dc VGC17: Fix items 2020-04-06 20:25:22 +04:00
The Immortal
2b17e3bb92 Gen 5 Randoms: Fix Zangoose 2020-04-06 03:41:37 +04:00
The Immortal
6a057e733c Gen 5 Random: Fix Belly Drum 2020-04-06 03:01:42 +04:00
The Immortal
9db0c00375 Use double quotes 2020-04-06 00:09:07 +04:00
The Immortal
387dd7ce2d Refactor unavailable items
Items that are not available in-game are now consolidated into `isNonstandard`. 'Past' indicates that the item no longer works in the current generation. 'Unobtainable' indicates that the item works but can only be obtained through hacking.

Credit to @lusamine for testing many of these items in Sw/Sh.
2020-04-05 23:54:57 +04:00
Leonard Craft III
64d42624b8
Mark Plates (except Pixie Plate) as past gen items (#6524) 2020-04-05 11:09:16 -04:00
Kris Johnson
2f1419bd38
Shared Power and ORAS Doubles: Update bans (#6527) 2020-04-05 09:56:31 +04:00
The Immortal
b5d9829e0e Random Battle improvements 2020-04-01 23:06:19 +04:00
Marty-D
76da207659 Update Metronome again 2020-03-31 12:04:28 -04:00
Marty-D
87838fb207 Update Metronome 2020-03-30 12:12:22 -04:00
Marty-D
1488b63482 Update Copycat, Instruct, and Sleep Talk 2020-03-30 11:30:57 -04:00
Guangcong Luo
47b55f96bc Refactor dragIn to delegate to switchIn
dragIn and switchIn being two separate functions is a weird historical
quirk that leads to inconsistencies in implementation.

The only reason they need to be separated is a Mold Breaker quirk:
1da65efb12

(This is now done with an `if` statement.)

This should fix a lot of Roar/Whirlwind mechanics issues from `dragIn`
being on outdated mechanics compared to `switchIn`.
2020-03-30 05:25:20 -07:00
Guangcong Luo
2d78044604 Fix activeTurns/activeMoveActions bugs
`activeTurns` was previously a horrible hack, used for "first full turn
only" effects like Speed Boost as well as "first move action" effects
like Fake Out.

In addition to being a huge hazard for API users such as OMs, this also
means weird bugs such as Speed Boost not working if you get hit by
Sky Drop on your first turn.

This commit fixes them by splitting these counters into two - an
`activeTurns` counter for Speed Boost, and an `activeMoveActions`
counter for Fake Out.
2020-03-30 04:07:05 -07:00
The Immortal
de2d80663e Random Battle improvements 2020-03-29 02:36:41 +04:00
The Immortal
659a878e5d Random Battle updates 2020-03-27 22:58:10 +04:00
Leonard Craft III
933eb9a137
Species -> name in Gen 1 (#6495) 2020-03-26 20:03:48 -07:00
The Immortal
a5e15818fa Fix MissingNo.'s learnset 2020-03-26 22:12:35 +04:00
The Immortal
f8c801e76e Fix Metronome mechanics 2020-03-26 21:05:44 +04:00
The Immortal
81891546b9 Rename Missingno. to MissingNo. 2020-03-26 18:37:35 +04:00
Kris Johnson
ea1b028950
Rename cosmeticFormeName to forme (#6492) 2020-03-26 18:13:31 +04:00
Kris Johnson
994fc60aed
Rename Template to Species (#6478) 2020-03-25 23:29:27 -07:00
The Immortal
483aba6876 Gen 1 Random: Fix Omanyte 2020-03-25 15:34:13 +04:00
Kris Johnson
0e0bd0502a
Gen 6: Fix Floette-Eternal's tier (#6487) 2020-03-24 20:36:43 -07:00
Kris Johnson
bafea519c4
Gen 5: Fix Combusken's tier (#6486) 2020-03-24 20:36:34 -07:00
Kris Johnson
ff0968bdc9
Scalemons: Move stat formula to rulesets (#6481) 2020-03-22 05:44:47 +04:00
The Immortal
6dc9cb5e4f Gen 7: Fix broken entries in Formats-Data 2020-03-22 05:06:18 +04:00
Marty-D
0af4a07da4 Descriptions: Update move disabling effects 2020-03-21 12:11:45 -04:00
Kris Johnson
770f1a3f7c
Add support for (NU) (#6475) 2020-03-20 20:50:14 -07:00
Marty-D
c228bdedfa
Gen VI: Fix Parting Shot drops 2020-03-20 14:39:29 -04:00
The Immortal
2ad5525e8b Fix Parting Shot mechanics 2020-03-20 21:23:33 +04:00
Marty-D
ca91a54a91 Explicitly block Yawn's effect with Electric/Misty Terrain 2020-03-19 10:12:50 -04:00
The Immortal
d7348167a9 Formats-Data: Do not inherit in older gens
It was used to inherit `eventPokemon` so as to not have duplicated data. Event data is now in Learnsets so this inheriting is unneeded.
2020-03-19 16:59:11 +04:00
Christopher Monsanto
3dfa720113 Fix isNonstandard on Genesect formes 2020-03-18 22:53:42 -04:00
The Immortal
c09044a777 Move gen property to Pokedex 2020-03-18 23:09:45 +04:00
The Immortal
51ccfd844d Fix Arceus items in past gens 2020-03-18 22:30:55 +04:00
The Immortal
bbb4da0131 Refactor forme data 2020-03-18 15:17:55 +04:00
Kris Johnson
3e26318758
Refactor learnsets.js (#6466) 2020-03-18 00:59:29 -07:00
The Immortal
ffc88e833f Random Battle: Improve error handling 2020-03-17 14:23:38 +04:00
Kris Johnson
4090d2baac
SSB: Remove Raid (#6465) 2020-03-17 12:18:50 +04:00
Kris Johnson
83ebdb27da
Add Dex#getOutOfBattleSpecies (#6463) 2020-03-16 20:31:38 +04:00
The Immortal
bdfb975041 Gen 5 Randoms: Fix Sunflora 2020-03-14 13:09:01 +04:00
Kris Johnson
b077646808
Random Battles chat plugin: Fix various issues (#6448) 2020-03-12 12:37:10 +04:00
Kris Johnson
eb6985031e
SSB: Update martha's rank (#6447) 2020-03-11 23:56:42 -04:00
The Immortal
a61d7080e3 Fix usage of inheritsFrom 2020-03-10 21:31:06 +04:00
Guangcong Luo
64ff1da81f Refactor more things to use inheritsFrom 2020-03-10 09:59:36 -07:00
Kris Johnson
f56e3ef66d
Fix BW Magic Room priority (#6437) 2020-03-10 17:00:51 +04:00
Kris Johnson
a5988318de
Update Knock Off description (#6438) 2020-03-10 11:49:35 +04:00
Kris Johnson
82a3fc7b94
Refactor [Gen 2] Random Battle (#6435) 2020-03-09 11:56:15 +04:00
Guangcong Luo
125fe31d06 Improve eslintrc
Fixed some more code style, allowing these rules to be enabled:

- `comma-dangle`
- `function-paren-newline`
- `member-delimiter-style`
- `no-eval`
- `no-fallthrough`
- `no-misused-promises`
- `no-unused-vars`
- `operator-linebreak`
2020-03-06 22:35:55 -08:00
Kris Johnson
9d995eb838
SSB: Update Aeonic's rank (#6426) 2020-03-06 17:58:43 -08:00
The Immortal
22feeebaee Gen 5: Fix Rapid Spin 2020-02-29 12:50:50 +04:00
ACakeWearingAHat
69ab44a78e
Gen 5: Randoms update (#6387) 2020-02-27 17:19:51 +04:00
Kris Johnson
03f2378d8c
Correct validation for UU NFE Clause/Little Cup (#6395) 2020-02-24 21:19:17 -08:00
Guangcong Luo
72976d1001 Fix Gen 3 Quick Claw 2020-02-24 19:27:50 -08:00
The Immortal
bd262b726c Fix ADV UU NFE Clause 2020-02-23 22:25:35 +04:00
Kris Johnson
fd63ee2a3b
Add ADV UU NFE Clause (#6386) 2020-02-23 00:15:35 -08:00
The Immortal
d7c09e0f0e Gen 5: Update Random Battle moves 2020-02-22 02:00:16 +04:00
Guangcong Luo
167c84124a Refactor Gyro/Electro Ball implementations
This one's for you, @scheibo

https://github.com/smogon/pokemon-showdown/pull/5805/files#r326914000
2020-02-18 13:18:39 -08:00
The Immortal
a931c13bda Fix 5cf40b239 2020-02-17 16:46:46 +04:00
The Immortal
5cf40b239d Mail does not exist in Sw/Sh
It doesn't work either if you try to hack it.
2020-02-17 16:38:20 +04:00
The Immortal
9e70a66f2d Power is unusable in Sw/Sh 2020-02-14 23:56:18 +04:00
Russell Jones
4615693685
Fix Gyro Ball/Electro Ball divide-by-0 edge cases (#5805) 2020-02-14 10:39:54 -08:00
Kris Johnson
358d947b15
Add Let's Go transfer support (#6367) 2020-02-12 21:22:45 -08:00
Guangcong Luo
652c7163cf
Refactor queue to new BattleQueue class (#6358)
Previously, battle queue stuff was just strewn around `battle.ts`.
This gives it a new home: `battle-queue.ts`.

This was intended to make `battle.ts` slightly more tractable, although
the difference is so small that maybe I shouldn't bother. Oh, well,
every little bit helps.
2020-02-12 16:20:17 -08:00
Kris Johnson
92c7d377a7
Add Pokemon Home support (#6349)
Co-authored-by: The Immortal <the_immortal123@live.com>
2020-02-12 14:54:55 +04:00
The Immortal
f24df5dd58 Correct Light of Ruin data 2020-02-12 14:27:45 +04:00
Kris Johnson
c870615cad
Accurately update LGPE tiers (#6354) 2020-02-09 07:57:09 +04:00
CasualPokePlayer
fa3bece2ea
Update LGPE OU Tiers (#6353)
https://www.smogon.com/stats/2019-11/gen7letsgoou-1630.txt
2020-02-08 09:44:17 -08:00
Guangcong Luo
55cbc52bba Fix bugs with secondary/ability order
Fixes #6346

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

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

`AfterHit` is no longer a valid event on `secondary` and `self` blocks,
because it's meaningless in those blocks, anyway. All `self.onAfterHit`
and `secondary.onAfterHit` handlers have been moved to `onHit`, which
should have the same timing in practice.
2020-02-08 08:07:39 -08:00
Guangcong Luo
0eae50191b Improve Wide Guard description 2020-02-08 07:44:10 -08:00
Salaaa
66e46b8421
SSB: Prevent salamander's ability from crashing in edge cases (#6344) 2020-02-07 20:14:27 -05:00
The Immortal
e67a55d7ad Macho Brace is available in Sw/Sh 2020-02-07 14:21:36 +04:00
DeltaCoderr
d4779cc558
Update Ranks in SSB (#6345)
* Update  Ranks in SSB

* Update Schiavetto's  SSB Rank.
2020-02-06 15:29:55 +04:00
The Immortal
da7507f806 Gen 5 Random: Don't reject Inner Focus 2020-02-06 01:05:45 +04:00
The Immortal
45b5a22985 Gen 2 randoms: Delete invalid set 2020-02-05 23:58:30 +04:00
Salaaa
3b59e44b52
SSB: Fix Lava Terrain damage boost (#6332) 2020-02-06 01:01:25 +10:30
Ezaphs
d10e93809b
Ban Mega Gengar from LGPE OU (#6333)
https://www.smogon.com/forums/threads/lgpe-ou-spectre-mega-gengar-is-now-banned.3658931/#post-8357495
2020-02-03 17:12:36 -08:00
QuiteQuiet
211cefb262
Fix Healing Wish for Gen 8 (#6296)
- Healing Wish is not consumed if the Pokemon switching in
  has full health and no status condition.
- Being statused with full health will consume the Healing Wish.
- It does not trigger on damage after switching in.
- The effect will be consumed if an injured Pokemon is swapped
  into a slot with an active Healing Wish by Ally Switch.
2020-02-01 22:04:21 -08:00
Kris Johnson
4c5640d051
Add February 2020 OMotM and RoA Spotlight (#6323) 2020-02-01 15:10:59 +04:00
Guangcong Luo
0e9e68db71 Fix King's Shield shortDesc 2020-01-27 19:05:49 -08:00
Guangcong Luo
4ff0f0bf2e Update shortDescs for "damaging attacks"
Moves like King's Shield, Obstruct, and Mat Block only protect against
non-Status moves; this is now mentioned in shortDescs.
2020-01-27 18:26:57 -08:00
scoopapa
ce6955fe94 Clean Slate Micro Balance Update #1 (#6304) 2020-01-23 13:37:37 +04:00
Kirk Scheibelhut
e44a5683c3 Add EBC to Gens 1 and 2 (#6298)
Also add test for 1000 turn termination behavior.
2020-01-22 14:13:36 -08:00
The Immortal
0b06127638 Gen 5 Randoms: Copy updates from gen 6 2020-01-22 08:22:04 +04:00
The Immortal
38671c67c7 Doubles: Add Gravity Sleep Clause
Closes #6299
2020-01-22 07:28:40 +04:00
urkerab
d1a66cbe07 Simplify handling of Encore volatile (#6292) 2020-01-20 17:00:37 +04:00
urkerab
351089c3d9 Always use getAbility to get a Pokémon's Ability (#6293) 2020-01-18 19:37:01 -07:00
Guangcong Luo
b48733cb7a Rename resolveTarget -> getRandomTarget
Should be much clearer in terms of what it's actually doing.
2020-01-18 15:43:34 -07:00
The Immortal
8f7df1e5c4 Set Genesect drives as past items 2020-01-18 14:17:12 +04:00
The Immortal
38053c0168 Random Battle improvements 2020-01-17 14:05:15 +04:00
urkerab
b589745a25 Typescript move.target (#6260) 2020-01-11 09:10:10 -05:00
The Immortal
d70af8e12a Update Slowpoke data 2020-01-09 20:43:58 +04:00
The Immortal
491e0575e0 Random Battle updates 2020-01-07 22:07:09 +04:00
The Immortal
6b2fb44abb Set unavailable fossils as "Past" items 2020-01-07 04:17:29 +04:00
The Immortal
0edf3aae55 Correct Zippy Zap effects 2020-01-07 03:56:27 +04:00
The Immortal
cee7c21bc1 Fix Psyduck events 2020-01-07 00:43:59 +04:00
Jacob Ellis Duncan
766dcbc3b4 Update item descriptions (#6211) 2020-01-06 12:00:20 -05:00
SalamanderFire
6b2293918f SSB: More bugfixes/updates (#6262) 2020-01-05 22:47:15 -05:00
Guangcong Luo
138fccbaa8 Consolidate more rules into Standard
- `Obtainable` and `Team Preview` are now part of `Standard`

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

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

- It is now possible to inherit `minSourceGen` from rules.
2020-01-03 23:42:48 -05:00
SalamanderFire
d8a0449702 SSB: Bugfixes and Namechanges (#6241) 2020-01-03 18:16:48 -05:00
Kris Johnson
f023c67038 Pet Mod: Fix Purugly and Ludicolo (#6250) 2020-01-02 03:48:03 +04:00
The Immortal
be24a4bdf2 Random Battle updates 2020-01-02 02:56:02 +04:00
Kris Johnson
a3d3d71863 Add Pet Mod of the Season (#6245) 2020-01-02 02:47:46 +04:00
urkerab
5067f1fefa Fix displayed target of move-specific immunity in Gen 1 and 2 (#6244) 2020-01-01 01:44:33 +04:00
Marty-D
cc4c622e56
Add Sleep Clause Mod back to Standard Gen 4 rulesets 2019-12-31 12:30:25 -05:00
Kris Johnson
59154fadad Rename Vice Grip to Vise Grip (#6240) 2019-12-31 13:56:41 +09:00
urkerab
b437e64efe Fix tier counting in Gen 5 randbats (#6234) 2019-12-29 20:01:59 +04:00
Kris Johnson
6a3945bb18 Custap Berry is released in ORAS and USUM (#6226) 2019-12-28 15:41:07 +04:00
The Immortal
519954624b Re-add gen 7 OMs 2019-12-27 22:38:00 +04:00
urkerab
7152b42daf Calculate fractional priority once per turn (#6224) 2019-12-27 12:42:34 +09:00
The Immortal
4414fab072 BW OU: Remove Sleep Clause 2019-12-27 01:08:47 +04:00
Marty-D
fb430a1552 Revert "Fix Sunflora Gen 2 move legality (#6223)"
This reverts commit eb6d7d831e.
2019-12-26 10:22:36 -05:00
Marty-D
4c45af4dc3
Don't reveal Abilities against Magic Guard prior to Gen 7 2019-12-26 10:17:38 -05:00
Samantha
eb6d7d831e Fix Sunflora Gen 2 move legality (#6223)
Adding 'Sunflora + Razor Leaf + Synthesis'

Sunflora can only learn Razor Leaf at Level 10, after it evolves. It can only learn Synthesis at Level 31, before it evolves. So it can't have both.
2019-12-26 11:46:40 +09:00
The Immortal
a1b502f901 Random Battle improvements 2019-12-25 05:58:16 +04:00
The Immortal
f62ff19e8a Improve validation for unobtainable Pokemon
This merges the Glitch and Pokestar tags into a new Unobtainable tag that defines Pokemon that are only obtainable through hacking (such as Floette-Eternal and Missingno.). These Pokemon are legal in Hackmons of their specific generation only. Custom is used in future gens instead of Past because of National Dex legality.
2019-12-25 00:35:39 +04:00
urkerab
3d38fbc89f Make semi-invulnerability work in Gen 1 again (#6215) 2019-12-24 02:59:42 +04:00
Kris Johnson
e2a811aae2 CAP: Properly handle learnset updates (#6214) 2019-12-24 02:49:29 +04:00
The Immortal
5bb8dddad8 Delibird's hidden ability is released 2019-12-20 06:23:53 +04:00
Kris Johnson
23fbcf747b Update the LGPE moves (#6178) 2019-12-16 05:50:31 +04:00
Kris Johnson
cb83dda418 Update Utility Umbrella (#6127) 2019-12-13 00:30:57 +09:00
Guangcong Luo
a062a6c96e Fix Custap Berry 2019-12-12 18:23:52 +09:00
The Immortal
b2c5b31e1d Random Battle updates 2019-12-12 04:43:31 +04:00
Guangcong Luo
3b86164a77 Fix Quick Claw 2019-12-11 18:12:54 +09:00
420Blazeitt
82d1f8ed92 SSB: dont let glitzer popping call gen 8 moves (#6171) 2019-12-10 17:32:18 +04:00
asgdf
97d76831ea Fix Forretress not showing up in gen 2 randbats (#6164) 2019-12-09 16:29:17 +04:00
The Immortal
7dfc381e9b Leaf Blade + Sucker Punch Shiftry is legal 2019-12-09 05:16:46 +04:00
The Immortal
29fdcc42cf Update Electric/Grassy/Psychic terrains 2019-12-08 22:35:07 +04:00
ZardMX
3cdebcc3a6 Add Obstruct in list of protection moves (#6124) 2019-12-04 10:32:22 -05: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
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
a133a5b28b Fix 4b324e536
This reverts the other changes that were related to that commit.
2019-12-02 18:13:08 +04:00
Guangcong Luo
24fe6b8781 Fix Mago/Wiki Berry descriptions 2019-12-02 17:25:40 +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
6055be5624 Random Battle improvements 2019-12-01 21:45:30 +04:00
420Blazeitt
f64bd4e9d3 Defog now removes terrains and G-Max Steelsurge (#6126) 2019-12-01 10:18:14 +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
The Immortal
acd111e7d3 Mix & Mega: Allow native megas 2019-11-29 13:20:35 +04:00
Guangcong Luo
903c297b39 Fix Disguise descriptions
Fixes #6064
2019-11-29 10:06:20 +13:00
Spandan Punwatkar
3deb1c69c4 Dexsearch: Allow searching national dex (#6106) 2019-11-28 12:40:30 -05:00
Spandan Punwatkar
b6b66de896 Update Repo Links (#6102) 2019-11-28 12:47:38 +04:00
The Immortal
224465f6f7 Remove Moody Clause from Standard ruleset 2019-11-28 02:52:39 +04:00
HoeenHero
661f52f2c3 Fix crash with Disguise in Gen 7 2019-11-27 08:35:51 -05: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
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
HoeenHero
c0c9bca26b Mark various berries as unreleased in Gen 8 2019-11-26 12:55:49 -05:00
The Immortal
4110ead42b Fix VGC 17 & re-add US/UM Doubles UU 2019-11-25 20:58:14 +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
0f1d2b0b5c
Allow Stick in past gens 2019-11-24 06:29:14 +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
The Immortal
492f5ac7d5 Remove Moody Clause from Doubles ruleset 2019-11-22 22:38:57 +04:00
The Immortal
0805535b40 Flag rest of the unusable moves as Past 2019-11-22 01:07:05 +04:00
The Immortal
bb370216e0 Set Gems to Past items 2019-11-20 23:23:05 +04: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
b97b426f26 Fix SSB crash 2019-11-20 21:43:01 +13:00
Guangcong Luo
4a3fd8717e Update Moody
Fixes #6027
2019-11-20 21:28:50 +13: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
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
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
Christopher Monsanto
ccd0e34c33 Fix previous gen Gumshoos forme (#6014) 2019-11-19 17:31:54 +04:00
The Immortal
d9a617b0e9 Correct Disguise descs 2019-11-19 00:14:36 +04:00
The Immortal
eb905cbe92 Implement Disguise damage 2019-11-18 23:58:00 +04:00
420Blazeitt
77e4d694b9 Disallow Vivillon formes in gen 8 (#5980) 2019-11-17 17:53:29 +04:00
Guangcong Luo
4fc49bc7f9 Fix Body Press
Fixes #5975

Fixes #5979
2019-11-17 18:47:16 +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
The Immortal
a6bd62a51b Remove unneeded isUnreleased flags for LGPE moves 2019-11-17 05:33:37 +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
The Immortal
eba141fb94 Correct Magearna-Original tier 2019-11-17 01:05:48 +04: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
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
cc84d1c4f1 Fix some Z crystals being allowed 2019-11-17 07:26:10 +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
asgdf
f498a03da6 Fix Pokemon in pastgen randbats sometimes having no moves (#5970) 2019-11-16 21:25:41 +04:00
Guangcong Luo
04799f5c1e Restrict Z-crystals and mega stones to Gen 7 2019-11-16 20:00:53 +13:00
The Immortal
de7c22bc86 Allow Double Iron Bash in Hackmons 2019-11-16 09:13:58 +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
Kris Johnson
d73f05dc0c Check if the target is Dynamaxed for weight moves (#5957) 2019-11-15 23:22:24 -05:00
HoeenHero
9ecbcabee9
Dynamaxing (#5946) 2019-11-15 21:33:10 -05: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
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
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
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
urkerab
4ab68a3440 Refactor Toxic from Poison types against semi-invulnerability (#5930) 2019-11-06 19:51:22 -05:00
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
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
HoeenHero
074b78be71 SSB: Improve Wonder Trade's interaction with Super Illusion 2019-10-24 21:56:07 -04:00
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
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
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
Lusamine
dcb438c041 Update vivalospride's and Rage's ranks (#5887) 2019-10-16 04:22:35 +04:00
Lusamine
66966f40d0 SSB: Fix Jolteonite's description (#5874) 2019-10-12 15:47:45 +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
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
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
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
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
The Immortal
5d5b82a689
Gen 1: Fix Omanyte in Random Battle 2019-09-13 15:09:33 +04: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
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
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
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
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
The Immortal
c285997991 Add August OMs 2019-08-01 18:53:43 +04: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
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
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
Kirk Scheibelhut
a61c10eeb8
Remove hardcoded URLs in favor of Config.routes (#5557) 2019-07-01 10:19:21 -07:00
The Immortal
9f8e20da8e Random Battle: Fix Monotype teams
And remove unused item selection.
2019-06-25 22:28:57 +04:00
HoeenHero
a029157138 Gen II: Send Rest message while asleep for tracking sleep turns (#5537) 2019-06-14 09:04:11 -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
Marty-D
83845927ed
Gen IV: End Healing Wish and Lunar Dance's effects properly 2019-06-07 15:44:27 -04:00
urkerab
9abb7f11ab Don't share self-replacing abilities (#5526) 2019-06-05 16:39:58 -05: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
e2a2983050
Gen I: Fix multi-hit move damage against substitutes 2019-05-20 11:09:51 -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
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
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
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
The Immortal
034b936219 Random Battle updates 2019-04-24 02:50:51 +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
9428d274cc Gen III: Improve Truant implementation 2019-04-17 16:36:25 -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
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
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
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
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
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
force
e3e269956a SSB: update ranks and fix moves (#5380) 2019-04-01 22:12:19 -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
Slayer95
6384964a10 Sim: Z Moves may only be disabled when all base moves are (#5387) 2019-03-30 18:14:53 -04: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
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
Ivo Julca
ac4b94876b Sim: Refactor to use Battle#getAllPokemon() and Battle#getAllActive() 2019-03-26 23:18:19 -05:00
MacChaeger
9a7ce3dedf Put side conditions on p1 and p2 in multi battles (#5341) 2019-03-27 11:00:36 +08:00
Kirk Scheibelhut
9f5a727ad1 Pull Field out of Battle (#5333) 2019-03-23 02:52:12 +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
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
Marty-D
9315b8d4d8 Gen II: Cap stat boosting properly 2019-03-16 17:49:25 -04:00
force
b6a28d693d SSB: Bug Fixes & Update Names/Ranks (#5295) 2019-03-15 08:54:58 -04: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
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
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
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
MacChaeger
33a872e029 Gen 7: Stockpile tracks individual stat alterations (#5246) 2019-03-04 17:59:44 -06:00
Konrad Borowski
8289374460 Disallow non-standard Pokemon in Gen1/2 randbats (#5235) 2019-03-03 21:47:37 +04:00
urkerab
9ebaa6877b Fix Protean and Color Change (#5233) 2019-03-03 04:40:35 -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
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
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
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
Kris Johnson
da6f42c5c1 Change Untiered to (DUU) for Doubles (#5178) 2019-02-25 07:35:41 +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
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
Lycanium Z
cacc83043a SSB: Fix Evoblast interaction with substitute; update ranks (#5166) 2019-02-19 21:23:12 -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
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
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
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