Commit Graph

6089 Commits

Author SHA1 Message Date
The Immortal
e877044985 Random Battle improvements 2020-02-17 01:31:02 +04:00
Guangcong Luo
eee403fbea Properly fix Pledge moves
I had this fixed and forgot to commit + push it. :(
2020-02-15 15:40:59 -08:00
Guangcong Luo
1fa9e141f6 Fix Pledge moves 2020-02-15 13:38:58 -08:00
The Immortal
5985e1f3e0 Add missing Steel Beam Pokemon 2020-02-15 23:15:44 +04:00
The Immortal
9ad09488f5 Random Battle updates 2020-02-15 22:01:36 +04:00
Guangcong Luo
09e563f9fc Fix some moves triggering abilities twice 2020-02-15 08:54:14 -08:00
The Immortal
14d6509fbf
Fix Slowpoke being legal 2020-02-15 20:47:32 +04:00
Kris Johnson
da66b5c599
OU: Ban Melmetal and Kyurem-Black (#6370)
https://www.smogon.com/forums/threads/kyurem-black-and-melmetal-are-now-banned-from-ou.3660047/
2020-02-14 23:20:26 -05:00
Guangcong Luo
7dab5f8d79 Fix Rapid Spin activation order
Order should be:

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

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

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

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

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

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

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

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

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

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

* Update Schiavetto's  SSB Rank.
2020-02-06 15:29:55 +04:00
The Immortal
da7507f806 Gen 5 Random: Don't reject Inner Focus 2020-02-06 01:05:45 +04:00
The Immortal
45b5a22985 Gen 2 randoms: Delete invalid set 2020-02-05 23:58:30 +04:00
Kris Johnson
9f27583ff1
Release Gigantamax Toxtricity (#6341) 2020-02-05 10:57:13 -08:00
Kris Johnson
4ef357cc92
Add aliases for Heavy-Duty Boots, Obstagoon, and Mr. Rime (#6340) 2020-02-05 10:57:01 -08:00
Salaaa
3b59e44b52
SSB: Fix Lava Terrain damage boost (#6332) 2020-02-06 01:01:25 +10:30