Commit Graph

18383 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
The Immortal
b91779476f Update /formathelp for OMs 2020-02-12 23:31:01 +04:00
Kris Johnson
239b7cdf13
Update VGC banlist (#6361) 2020-02-12 21:24:06 +04:00
The Immortal
42e63b1676 Update Monotype banlist 2020-02-12 21:04:22 +04:00
TheMezStrikes
f48dbf78a3
Fix 1v1 old gen links (#6360) 2020-02-12 16:35:32 +04:00
The Immortal
0579a3d319 Update 1v1 banlist 2020-02-12 15:40:25 +04:00
The Immortal
f86adef3ea Fix max line length warning 2020-02-12 15:40:06 +04:00
The Immortal
48e7c9777e Cartridge formats are Galar only 2020-02-12 15:14:00 +04:00
Kris Johnson
92c7d377a7
Add Pokemon Home support (#6349)
Co-authored-by: The Immortal <the_immortal123@live.com>
2020-02-12 14:54:55 +04:00
The Immortal
801bc301b2 Fix Tier Shift crash 2020-02-12 14:34:17 +04:00
The Immortal
f24df5dd58 Correct Light of Ruin data 2020-02-12 14:27:45 +04:00
The Immortal
19cdf79821 Update OMs 2020-02-12 14:19:29 +04:00
The Immortal
14558e3b27 Update Random Battle levels 2020-02-12 12:16:43 +04:00
Guangcong Luo
1051b9e4ba Sent a useful tip if someone sends /nick 2020-02-11 14:43:05 -08:00
Guangcong Luo
1914a37aba Fix Eject Pack to activate for self-boosting 2020-02-11 11:16:46 -08:00
Guangcong Luo
ee4435716f Fix crash in Knock Off + Substitute
(This also fixes a bug where hitting Substitute procced DamagingHit
events.)
2020-02-10 15:37:34 -08:00
The Immortal
ec5471872f Move Dracozolt to UUBL 2020-02-10 07:16:07 +04:00
The Immortal
ae0ab3cb63 Trademarked: Restrict Wish 2020-02-10 07:14:38 +04:00
Lusamine
39545c581d
Update datacenters and IP-tools (#6355) 2020-02-09 16:11:33 -08:00
Kris Johnson
c870615cad
Accurately update LGPE tiers (#6354) 2020-02-09 07:57:09 +04:00
CasualPokePlayer
fa3bece2ea
Update LGPE OU Tiers (#6353)
https://www.smogon.com/stats/2019-11/gen7letsgoou-1630.txt
2020-02-08 09:44:17 -08:00
Guangcong Luo
e464ccd0ad Improve Present Kee Berry workaround 2020-02-08 08:14:08 -08:00
Guangcong Luo
6a677e39e8 Fix Emergency Exit timing
This is a really hacky implementation of Emergency Exit, but Emergency
Exit itself is a huge mess on cart, too.

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

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

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

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

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

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

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

`AfterHit` is no longer a valid event on `secondary` and `self` blocks,
because it's meaningless in those blocks, anyway. All `self.onAfterHit`
and `secondary.onAfterHit` handlers have been moved to `onHit`, which
should have the same timing in practice.
2020-02-08 08:07:39 -08:00
Guangcong Luo
1f8b14cb6c Update dependencies
(The newest sucrase now supports optional chaining.)

(The TSLint crash is fixed.)
2020-02-08 07:44:22 -08:00
Guangcong Luo
0eae50191b Improve Wide Guard description 2020-02-08 07:44:10 -08:00
Volco
dab2d21e3f
Fix Kee Berry activating due to Present healing (#5745) 2020-02-08 05:51:56 +04:00
Salaaa
66e46b8421
SSB: Prevent salamander's ability from crashing in edge cases (#6344) 2020-02-07 20:14:27 -05:00
Kris Johnson
36d6dc8b0c
Typescript Jeopardy, Blackjack, and Room Events (#6331) 2020-02-07 03:16:49 -08:00
The Immortal
e67a55d7ad Macho Brace is available in Sw/Sh 2020-02-07 14:21:36 +04:00
Kris Johnson
8aa26d39b0
Fix Psychic Terrain crash (#6348) 2020-02-07 04:12:26 +04:00
Kris Johnson
f047782f9b
STABmons: Restrict Extreme Speed (#6347) 2020-02-07 04:05:42 +04:00
The Immortal
53f384fd89 Add DOU sample teams link 2020-02-07 04:03:59 +04:00
The Immortal
15fe9f27e9 Random Battle: Improve Inteleon 2020-02-07 03:55:58 +04:00
Kris Johnson
9f08d93244
Toxtricity-Low-Key can Gigantamax (#6343) 2020-02-07 03:54:07 +04:00
whales
2a6db11b3e Fix trackRename message 2020-02-06 23:11:58 +10:30
Guangcong Luo
b30758a3e1 Standardize Alcremie forms
We're now using what should be the official names for the Alcremie
cosmetic forms.
2020-02-06 04:09:55 -08:00
DeltaCoderr
d4779cc558
Update Ranks in SSB (#6345)
* Update  Ranks in SSB

* Update Schiavetto's  SSB Rank.
2020-02-06 15:29:55 +04:00
Kris Johnson
64a37210a3
Add generation and natdex support for /movesearch (#6320) 2020-02-05 15:39:42 -08:00
The Immortal
933d2b0e4f Add Random Battle thread link 2020-02-06 01:43:35 +04:00
The Immortal
da7507f806 Gen 5 Random: Don't reject Inner Focus 2020-02-06 01:05:45 +04:00
The Immortal
45b5a22985 Gen 2 randoms: Delete invalid set 2020-02-05 23:58:30 +04:00
Kris Johnson
9f27583ff1
Release Gigantamax Toxtricity (#6341) 2020-02-05 10:57:13 -08:00
Kris Johnson
4ef357cc92
Add aliases for Heavy-Duty Boots, Obstagoon, and Mr. Rime (#6340) 2020-02-05 10:57:01 -08:00
Kris Johnson
d1c0fb26a6
Tournaments: Send name and format to room separately (#6335) 2020-02-05 07:47:06 -08:00
Salaaa
3b59e44b52
SSB: Fix Lava Terrain damage boost (#6332) 2020-02-06 01:01:25 +10:30
Guangcong Luo
3255d287b8 Add hint for Psychic Terrain flying interaction
This is by far the most commonly reported "bug" on Twitter, so it's
probably worth adding a hint for.
2020-02-05 05:14:34 -08:00
The Immortal
12d036ccd6 Add UU sample teams link 2020-02-05 15:28:37 +04:00
Kris Johnson
a575d9ac7a
1v1: Ban Moody (#6339)
https://www.smogon.com/forums/threads/mew-has-been-banned-from-ss-1v1-moody-quickban.3659726/
2020-02-05 03:14:26 -08:00
Kris Johnson
6fdb87f1f5
1v1: Ban Mew (#6336)
https://www.smogon.com/forums/threads/ss-1v1-mew-voting.3659689/#post-8358069
2020-02-04 22:02:53 +04:00