mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
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 |
||
|---|---|---|
| .. | ||
| mods | ||
| abilities.js | ||
| aliases.js | ||
| formats-data.js | ||
| items.js | ||
| learnsets.js | ||
| moves.js | ||
| pokedex.js | ||
| random-teams.js | ||
| rulesets.js | ||
| scripts.js | ||
| statuses.js | ||
| typechart.js | ||