Commit Graph

374 Commits

Author SHA1 Message Date
Guangcong Luo
9659511ff1 Refactor queue to new BattleQueue class
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 13:30:47 -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