pokemon-showdown/test/sim/misc
Guangcong Luo ed454ef76a
Refactor scripts to battle-actions (#8138)
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
2021-03-28 12:01:38 -07:00
..
accuracy.js Update accuracy calculation for latest Gen 7 research (#7806) 2020-12-15 18:37:24 -05:00
arceus.js Revelation Dance should use Arceus's real type 2021-01-05 16:59:08 +00:00
critical.js
dynamax.js Actually don't allow Struggling Pokemon to Dynamax (#8011) 2021-02-10 17:10:41 -05:00
endlessbattleclause.js Remove EBC staleness from abilities upon switching 2020-08-17 12:59:10 -07:00
faint-order.js Stop using assert.strict.strictEqual (#7515) 2020-10-14 01:19:03 -07:00
fusion-combo.js Fix Fusion Bolt + Fusion Flare interaction when first move fails (#6991) 2020-07-10 16:29:53 -07:00
hazards.js Add various mechanics tests (#7857) 2021-01-04 23:47:10 -08:00
inversebattle.js Fix Magnet Rise in Inverse Battles (#7943) 2021-01-26 20:08:50 -06:00
megaevolution.js Fix mega evolving into self 2020-04-07 10:56:19 -07:00
mixandmega.js Refactor test formats 2019-12-11 03:41:36 +09:00
overflowstatmod.js Fix Overflow Stat Clause and turn it into a mod (#7604) 2020-10-30 10:59:38 +04:00
pledgemoves.js Handle Gigantamaxing properly (#7001) 2020-07-23 13:27:42 -07:00
prng.js Use assert in strict mode 2020-02-20 00:39:31 -08:00
random-teams.js Refactor team validator for readability 2021-01-03 23:26:20 -08:00
recoil.js
silvally.js Use assert in strict mode 2020-02-20 00:39:31 -08:00
sleepclausemod.js Use assert in strict mode 2020-02-20 00:39:31 -08:00
speed.js Add various mechanics tests (#7857) 2021-01-04 23:47:10 -08:00
state.js Normal |t:| protocol message in Runner's DualStream 2020-07-21 13:35:53 -07:00
statuses.js Stadium: Apply BRN Atk drop once instead of 5x (#8139) 2021-03-25 23:38:55 -07:00
statusmoves.js Stop using assert.strict.strictEqual (#7515) 2020-10-14 01:19:03 -07:00
target-resolution.js Add various mechanics tests (#7857) 2021-01-04 23:47:10 -08:00
trapmoves.js Turn on prefer-const for .js files 2020-04-23 11:37:47 -07:00
turn-order.js Use assert in strict mode 2020-02-20 00:39:31 -08:00
typechange.js Stop using assert.strict.strictEqual (#7515) 2020-10-14 01:19:03 -07:00
weather.js Use assert in strict mode 2020-02-20 00:39:31 -08:00
weight.js Use assert in strict mode 2020-02-20 00:39:31 -08:00
zmoves.js Refactor scripts to battle-actions (#8138) 2021-03-28 12:01:38 -07:00