pokemon-showdown/data
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
..
mods Fix bugs with secondary/ability order 2020-02-08 08:07:39 -08:00
abilities.js Fix Emergency Exit timing 2020-02-08 08:07:39 -08:00
aliases.js Add aliases for Heavy-Duty Boots, Obstagoon, and Mr. Rime (#6340) 2020-02-05 10:57:01 -08:00
formats-data.js Random Battle: Improve Inteleon 2020-02-07 03:55:58 +04:00
items.js Fix bugs with secondary/ability order 2020-02-08 08:07:39 -08:00
learnsets.js Venusaur/Blastoise learn Frenzy Plant/Hydro Cannon in Sw/Sh 2020-01-29 19:52:01 +04:00
moves.js Fix bugs with secondary/ability order 2020-02-08 08:07:39 -08:00
pokedex.js Toxtricity-Low-Key can Gigantamax (#6343) 2020-02-07 03:54:07 +04:00
random-teams.js Random Battle: Improve Inteleon 2020-02-07 03:55:58 +04:00
rulesets.js Show Crowned formes in Team Preview 2020-02-03 01:05:38 +04:00
scripts.js Fix Emergency Exit timing 2020-02-08 08:07:39 -08:00
statuses.js Correct Dynamax HP formula 2020-02-01 21:31:11 +04:00
typechart.js Typescript data/ and config/formats (#4513) 2018-03-26 09:50:51 -05:00