mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-22 07:25:28 -05:00
This introduces a new class, BattleActions, available as `battle.actions`, moving all functions from `data/scripts.ts` to `sim/battle-actions.ts`. This makes it so that "go to definition" will now work correctly for functions previously in scripts; we no longer need UnimplementedError, and there's now a clean conceptual separation between `battle` and `battle-actions` (whereas the previous distinction between `battle` and `scripts` was basically nonexistent). This will be a difficult migration if you maintain a fork with custom scripted mods. I'm sorry! Migration instructions are here: https://github.com/smogon/pokemon-showdown/pull/8138 |
||
|---|---|---|
| .. | ||
| accuracy.js | ||
| arceus.js | ||
| critical.js | ||
| dynamax.js | ||
| endlessbattleclause.js | ||
| faint-order.js | ||
| fusion-combo.js | ||
| hazards.js | ||
| inversebattle.js | ||
| megaevolution.js | ||
| mixandmega.js | ||
| overflowstatmod.js | ||
| pledgemoves.js | ||
| prng.js | ||
| random-teams.js | ||
| recoil.js | ||
| silvally.js | ||
| sleepclausemod.js | ||
| speed.js | ||
| state.js | ||
| statuses.js | ||
| statusmoves.js | ||
| target-resolution.js | ||
| trapmoves.js | ||
| turn-order.js | ||
| typechange.js | ||
| weather.js | ||
| weight.js | ||
| zmoves.js | ||