@pkmn/sim 0.5.18 → 0.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/config/formats.js +487 -432
- package/build/config/formats.js.map +1 -1
- package/build/data/aliases.js +2 -2
- package/build/data/aliases.js.map +1 -1
- package/build/data/formats-data.js +17 -13
- package/build/data/formats-data.js.map +1 -1
- package/build/data/learnsets.js +77 -9
- package/build/data/learnsets.js.map +1 -1
- package/build/data/mods/gen1/conditions.js +4 -0
- package/build/data/mods/gen1/conditions.js.map +1 -1
- package/build/data/mods/gen1/formats-data.js +3 -3
- package/build/data/mods/gen1/formats-data.js.map +1 -1
- package/build/data/mods/gen1/moves.js +2 -10
- package/build/data/mods/gen1/moves.js.map +1 -1
- package/build/data/mods/gen2/learnsets.js +2 -2
- package/build/data/mods/gen2/learnsets.js.map +1 -1
- package/build/data/mods/gen2/scripts.js +16 -0
- package/build/data/mods/gen2/scripts.js.map +1 -1
- package/build/data/mods/gen4/formats-data.js +1 -1
- package/build/data/mods/gen4/formats-data.js.map +1 -1
- package/build/data/mods/gen6/formats-data.js +1 -1
- package/build/data/mods/gen6/formats-data.js.map +1 -1
- package/build/data/mods/gen6/learnsets.js +0 -75
- package/build/data/mods/gen6/learnsets.js.map +1 -1
- package/build/data/mods/gen7/formats-data.js +1 -1
- package/build/data/mods/gen7/formats-data.js.map +1 -1
- package/build/data/moves.js +2 -4
- package/build/data/moves.js.map +1 -1
- package/build/data/pokedex.js +20 -1
- package/build/data/pokedex.js.map +1 -1
- package/build/data/rulesets.js +29 -0
- package/build/data/rulesets.js.map +1 -1
- package/build/data/tags.js +2 -2
- package/build/data/tags.js.map +1 -1
- package/build/sim/battle.js +1 -7
- package/build/sim/battle.js.map +1 -1
- package/build/sim/state.d.ts +1 -1
- package/build/sim/state.js +6 -6
- package/build/sim/state.js.map +1 -1
- package/build/sim/teams.d.ts +2 -2
- package/config/formats.ts +352 -302
- package/data/aliases.ts +2 -2
- package/data/formats-data.ts +17 -13
- package/data/learnsets.ts +77 -9
- package/data/mods/gen1/conditions.ts +4 -0
- package/data/mods/gen1/formats-data.ts +3 -3
- package/data/mods/gen1/moves.ts +2 -9
- package/data/mods/gen2/learnsets.ts +2 -2
- package/data/mods/gen2/scripts.ts +16 -0
- package/data/mods/gen4/formats-data.ts +1 -1
- package/data/mods/gen6/formats-data.ts +1 -1
- package/data/mods/gen6/learnsets.ts +0 -75
- package/data/mods/gen7/formats-data.ts +1 -1
- package/data/moves.ts +2 -4
- package/data/pokedex.ts +20 -1
- package/data/rulesets.ts +28 -0
- package/data/tags.ts +2 -2
- package/package.json +1 -1
- package/sim/battle.ts +1 -7
package/build/data/moves.js
CHANGED
|
@@ -7916,9 +7916,8 @@ exports.Moves = {
|
|
|
7916
7916
|
pp: 10,
|
|
7917
7917
|
priority: 0,
|
|
7918
7918
|
flags: { snatch: 1, heal: 1 },
|
|
7919
|
-
|
|
7919
|
+
onTryHit(source) {
|
|
7920
7920
|
if (!this.canSwitch(source.side)) {
|
|
7921
|
-
delete move.selfdestruct;
|
|
7922
7921
|
this.attrLastMove('[still]');
|
|
7923
7922
|
this.add('-fail', source);
|
|
7924
7923
|
return this.NOT_FAIL;
|
|
@@ -10027,9 +10026,8 @@ exports.Moves = {
|
|
|
10027
10026
|
pp: 10,
|
|
10028
10027
|
priority: 0,
|
|
10029
10028
|
flags: { snatch: 1, heal: 1, dance: 1 },
|
|
10030
|
-
|
|
10029
|
+
onTryHit(source) {
|
|
10031
10030
|
if (!this.canSwitch(source.side)) {
|
|
10032
|
-
delete move.selfdestruct;
|
|
10033
10031
|
this.attrLastMove('[still]');
|
|
10034
10032
|
this.add('-fail', source);
|
|
10035
10033
|
return this.NOT_FAIL;
|