@pkmn/mods 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.
@@ -50,63 +50,25 @@ export const Moves: {[k: string]: ModdedMoveData} = {
50
50
  haze: {
51
51
  inherit: true,
52
52
  onHit(target, source) {
53
- this.add('-clearallboost');
53
+ this.add('-activate', target, 'move: Haze');
54
+ this.add('-clearallboost', '[silent]');
54
55
  for (const pokemon of this.getAllActive()) {
55
56
  pokemon.clearBoosts();
56
- // This should cure the status of both Pokemon, and subsequently recalculate stats to remove the Paralysis/Burn Speed Drop.
57
- pokemon.cureStatus();
57
+ pokemon.cureStatus(true);
58
58
  for (const id of Object.keys(pokemon.volatiles)) {
59
59
  pokemon.removeVolatile(id);
60
- this.add('-end', pokemon, id);
60
+ this.add('-end', pokemon, id, '[silent]');
61
61
  }
62
62
  pokemon.recalculateStats!();
63
63
  }
64
64
  },
65
65
  },
66
- highjumpkick: {
67
- inherit: true,
68
- desc: "If this attack misses the target, the user takes 1 HP of damage.",
69
- shortDesc: "User takes 1 HP damage it would have dealt if miss.",
70
- onMoveFail(target, source, move) {
71
- if (!target.types.includes('Ghost')) {
72
- this.directDamage(1, source);
73
- }
74
- },
75
- },
76
66
  hyperbeam: {
77
67
  inherit: true,
78
68
  onMoveFail(target, source, move) {
79
69
  source.addVolatile('mustrecharge');
80
70
  },
81
71
  },
82
- jumpkick: {
83
- inherit: true,
84
- desc: "If this attack misses the target, the user 1HP of damage.",
85
- shortDesc: "User takes 1 HP damage if miss.",
86
- onMoveFail(target, source, move) {
87
- this.damage(1, source);
88
- },
89
- },
90
- leechseed: {
91
- inherit: true,
92
- onHit() {},
93
- condition: {
94
- onStart(target) {
95
- this.add('-start', target, 'move: Leech Seed');
96
- },
97
- onAfterMoveSelfPriority: 1,
98
- onAfterMoveSelf(pokemon) {
99
- const leecher = this.getAtSlot(pokemon.volatiles['leechseed'].sourceSlot);
100
- if (!leecher || leecher.fainted || leecher.hp <= 0) {
101
- this.debug('Nothing to leech into');
102
- return;
103
- }
104
- const toLeech = this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1);
105
- const damage = this.damage(toLeech, pokemon, leecher);
106
- if (damage) this.heal(damage, leecher, pokemon);
107
- },
108
- },
109
- },
110
72
  psywave: {
111
73
  inherit: true,
112
74
  basePower: 1,
@@ -60,6 +60,13 @@ export const Scripts: ModdedBattleScriptsData = {
60
60
  this.recalculateStats!();
61
61
  return changed;
62
62
  },
63
+ // Remove stat recalculation logic from gen 1
64
+ clearBoosts() {
65
+ let i: BoostID;
66
+ for (i in this.boosts) {
67
+ this.boosts[i] = 0;
68
+ }
69
+ },
63
70
  },
64
71
  actions: {
65
72
  inherit: true,
@@ -104,6 +104,22 @@ export const Scripts: ModdedBattleScriptsData = {
104
104
  return false;
105
105
  }
106
106
 
107
+ if (move.target === 'all' || move.target === 'foeSide' || move.target === 'allySide' || move.target === 'allyTeam') {
108
+ if (move.target === 'all') {
109
+ hitResult = this.battle.runEvent('TryHitField', target, pokemon, move);
110
+ } else {
111
+ hitResult = this.battle.runEvent('TryHitSide', target, pokemon, move);
112
+ }
113
+ if (!hitResult) {
114
+ if (hitResult === false) {
115
+ this.battle.add('-fail', pokemon);
116
+ this.battle.attrLastMove('[still]');
117
+ }
118
+ return false;
119
+ }
120
+ return this.moveHit(target, pokemon, move);
121
+ }
122
+
107
123
  hitResult = this.battle.runEvent('Invulnerability', target, pokemon, move);
108
124
  if (hitResult === false) {
109
125
  this.battle.attrLastMove('[miss]');
@@ -195,7 +195,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
195
195
  randomBattleMoves: ["aromatherapy", "gigadrain", "sleeppowder", "sludgebomb", "strengthsap"],
196
196
  },
197
197
  bellossom: {
198
- tier: "NU",
198
+ tier: "PU",
199
199
  doublesTier: "DOU",
200
200
  randomBattleMoves: ["gigadrain", "moonblast", "quiverdance", "sleeppowder", "strengthsap"],
201
201
  },
@@ -262,7 +262,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
262
262
  tier: "NFE",
263
263
  },
264
264
  poliwrath: {
265
- tier: "NU",
265
+ tier: "PU",
266
266
  doublesTier: "DUU",
267
267
  randomBattleMoves: ["bulkup", "drainpunch", "poisonjab", "raindance", "waterfall"],
268
268
  },
@@ -335,7 +335,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
335
335
  tier: "LC",
336
336
  },
337
337
  slowbro: {
338
- tier: "UU",
338
+ tier: "RU",
339
339
  doublesTier: "DUU",
340
340
  randomBattleMoves: ["calmmind", "icebeam", "psychic", "scald", "slackoff", "thunderwave"],
341
341
  },
@@ -348,7 +348,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
348
348
  tier: "LC",
349
349
  },
350
350
  magneton: {
351
- tier: "RU",
351
+ tier: "PU",
352
352
  doublesTier: "NFE",
353
353
  },
354
354
  magnezone: {
@@ -365,7 +365,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
365
365
  tier: "LC",
366
366
  },
367
367
  dodrio: {
368
- tier: "NU",
368
+ tier: "PU",
369
369
  doublesTier: "DUU",
370
370
  randomBattleMoves: ["bravebird", "facade", "quickattack", "roost", "steelwing", "swordsdance"],
371
371
  },
@@ -425,7 +425,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
425
425
  tier: "LC",
426
426
  },
427
427
  kingler: {
428
- tier: "NU",
428
+ tier: "PU",
429
429
  doublesTier: "DUU",
430
430
  randomBattleMoves: ["agility", "razorshell", "rockslide", "swordsdance", "xscissor"],
431
431
  },
@@ -483,7 +483,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
483
483
  tier: "LC",
484
484
  },
485
485
  weezing: {
486
- tier: "NU",
486
+ tier: "PU",
487
487
  doublesTier: "DUU",
488
488
  randomBattleMoves: ["explosion", "fireblast", "painsplit", "sludgebomb", "toxicspikes", "willowisp"],
489
489
  },
@@ -519,7 +519,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
519
519
  randomBattleMoves: ["earthquake", "knockoff", "leechseed", "powerwhip", "sleeppowder", "sludgebomb"],
520
520
  },
521
521
  kangaskhan: {
522
- tier: "NU",
522
+ tier: "PU",
523
523
  doublesTier: "DUU",
524
524
  randomBattleMoves: ["crunch", "doubleedge", "earthquake", "fakeout", "hammerarm"],
525
525
  },
@@ -599,7 +599,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
599
599
  randomBattleMoves: ["earthquake", "fireblast", "psychic", "taunt", "thunderbolt"],
600
600
  },
601
601
  pinsir: {
602
- tier: "PU",
602
+ tier: "PUBL",
603
603
  doublesTier: "DUU",
604
604
  randomBattleMoves: ["closecombat", "earthquake", "stealthrock", "stoneedge", "xscissor"],
605
605
  },
@@ -612,7 +612,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
612
612
  tier: "LC",
613
613
  },
614
614
  gyarados: {
615
- tier: "UU",
615
+ tier: "RU",
616
616
  doublesTier: "DOU",
617
617
  randomBattleMoves: ["dragondance", "earthquake", "icefang", "stoneedge", "waterfall"],
618
618
  },
@@ -697,7 +697,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
697
697
  randomBattleMoves: ["earthquake", "roost", "stealthrock", "stoneedge", "defog"],
698
698
  },
699
699
  munchlax: {
700
- tier: "LC",
700
+ tier: "NFE",
701
701
  },
702
702
  snorlax: {
703
703
  tier: "UU",
@@ -705,7 +705,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
705
705
  randomBattleMoves: ["bodyslam", "curse", "rest", "sleeptalk"],
706
706
  },
707
707
  articuno: {
708
- tier: "RU",
708
+ tier: "PU",
709
709
  doublesTier: "DUU",
710
710
  randomBattleMoves: ["defog", "icebeam", "roost", "uturn"],
711
711
  },
@@ -901,7 +901,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
901
901
  tier: "LC",
902
902
  },
903
903
  quagsire: {
904
- tier: "UU",
904
+ tier: "RU",
905
905
  doublesTier: "DUU",
906
906
  randomBattleMoves: ["earthquake", "recover", "scald", "toxic"],
907
907
  },
@@ -909,7 +909,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
909
909
  tier: "NFE",
910
910
  },
911
911
  honchkrow: {
912
- tier: "UU",
912
+ tier: "RU",
913
913
  doublesTier: "DUU",
914
914
  randomBattleMoves: ["bravebird", "roost", "suckerpunch", "taunt"],
915
915
  },
@@ -980,7 +980,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
980
980
  randomBattleMoves: ["knockoff", "stealthrock", "stickyweb", "toxic"],
981
981
  },
982
982
  heracross: {
983
- tier: "UU",
983
+ tier: "UUBL",
984
984
  doublesTier: "DUU",
985
985
  randomBattleMoves: ["closecombat", "facade", "megahorn", "stoneedge", "throatchop"],
986
986
  },
@@ -1119,7 +1119,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1119
1119
  randomBattleMoves: ["earthquake", "roost", "sacredfire", "substitute", "thunderwave"],
1120
1120
  },
1121
1121
  celebi: {
1122
- tier: "OU",
1122
+ tier: "UU",
1123
1123
  doublesTier: "DOU",
1124
1124
  randomBattleMoves: ["dazzlinggleam", "gigadrain", "leafstorm", "nastyplot", "psychic", "recover", "uturn"],
1125
1125
  },
@@ -1198,7 +1198,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1198
1198
  tier: "NFE",
1199
1199
  },
1200
1200
  ludicolo: {
1201
- tier: "NU",
1201
+ tier: "PU",
1202
1202
  doublesTier: "DOU",
1203
1203
  randomBattleMoves: ["gigadrain", "hydropump", "icebeam", "raindance", "scald"],
1204
1204
  },
@@ -1249,7 +1249,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1249
1249
  tier: "LC",
1250
1250
  },
1251
1251
  masquerain: {
1252
- tier: "NU",
1252
+ tier: "PU",
1253
1253
  doublesTier: "DUU",
1254
1254
  randomBattleMoves: ["airslash", "bugbuzz", "quiverdance", "scald", "stickyweb"],
1255
1255
  },
@@ -1369,7 +1369,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1369
1369
  randomBattleMoves: ["grassknot", "nastyplot", "nuzzle", "switcheroo", "thunderbolt", "voltswitch"],
1370
1370
  },
1371
1371
  volbeat: {
1372
- tier: "RU",
1372
+ tier: "PU",
1373
1373
  doublesTier: "DUU",
1374
1374
  randomBattleMoves: ["encore", "roost", "thunderwave", "uturn"],
1375
1375
  },
@@ -1482,7 +1482,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1482
1482
  randomBattleMoves: ["icebeam", "moonblast", "nastyplot", "psyshock", "stealthrock"],
1483
1483
  },
1484
1484
  solrock: {
1485
- tier: "NU",
1485
+ tier: "PU",
1486
1486
  doublesTier: "DUU",
1487
1487
  randomBattleMoves: ["earthquake", "explosion", "stealthrock", "stoneedge", "willowisp"],
1488
1488
  },
@@ -1514,7 +1514,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1514
1514
  tier: "LC",
1515
1515
  },
1516
1516
  cradily: {
1517
- tier: "RU",
1517
+ tier: "NU",
1518
1518
  doublesTier: "DOU",
1519
1519
  randomBattleMoves: ["gigadrain", "recover", "stealthrock", "stoneedge"],
1520
1520
  },
@@ -1572,12 +1572,12 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1572
1572
  tier: "LC",
1573
1573
  },
1574
1574
  chimecho: {
1575
- tier: "NU",
1575
+ tier: "PU",
1576
1576
  doublesTier: "DUU",
1577
1577
  randomBattleMoves: ["healingwish", "lightscreen", "psychic", "recover", "reflect", "thunderwave"],
1578
1578
  },
1579
1579
  absol: {
1580
- tier: "RU",
1580
+ tier: "NU",
1581
1581
  doublesTier: "DUU",
1582
1582
  randomBattleMoves: ["knockoff", "playrough", "suckerpunch", "swordsdance"],
1583
1583
  },
@@ -1590,7 +1590,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1590
1590
  randomBattleMoves: ["disable", "earthquake", "freezedry", "protect", "substitute"],
1591
1591
  },
1592
1592
  froslass: {
1593
- tier: "UU",
1593
+ tier: "RU",
1594
1594
  doublesTier: "DUU",
1595
1595
  randomBattleMoves: ["destinybond", "icebeam", "shadowball", "spikes", "taunt", "willowisp"],
1596
1596
  },
@@ -1614,7 +1614,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1614
1614
  randomBattleMoves: ["crunch", "icebeam", "shellsmash", "waterfall"],
1615
1615
  },
1616
1616
  gorebyss: {
1617
- tier: "NU",
1617
+ tier: "PU",
1618
1618
  doublesTier: "DUU",
1619
1619
  randomBattleMoves: ["hydropump", "icebeam", "psychic", "shellsmash"],
1620
1620
  },
@@ -1697,22 +1697,22 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1697
1697
  },
1698
1698
  deoxys: {
1699
1699
  tier: "Uber",
1700
- doublesTier: "DUber",
1700
+ doublesTier: "DOU",
1701
1701
  randomBattleMoves: ["superpower", "icebeam", "knockoff", "psychoboost", "stealthrock", "toxicspikes", "extremespeed"],
1702
1702
  },
1703
1703
  deoxysattack: {
1704
1704
  tier: "Uber",
1705
- doublesTier: "DUber",
1705
+ doublesTier: "DOU",
1706
1706
  randomBattleMoves: ["extremespeed", "icebeam", "knockoff", "psychoboost", "superpower"],
1707
1707
  },
1708
1708
  deoxysdefense: {
1709
1709
  tier: "Uber",
1710
- doublesTier: "DUber",
1710
+ doublesTier: "DOU",
1711
1711
  randomBattleMoves: ["knockoff", "nightshade", "recover", "stealthrock", "taunt", "teleport", "toxicspikes"],
1712
1712
  },
1713
1713
  deoxysspeed: {
1714
1714
  tier: "Uber",
1715
- doublesTier: "DUber",
1715
+ doublesTier: "DOU",
1716
1716
  randomBattleMoves: ["knockoff", "psychic", "stealthrock", "taunt", "toxicspikes"],
1717
1717
  },
1718
1718
  turtwig: {
@@ -1898,7 +1898,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1898
1898
  tier: "LC",
1899
1899
  },
1900
1900
  bronzong: {
1901
- tier: "UU",
1901
+ tier: "RU",
1902
1902
  doublesTier: "DOU",
1903
1903
  randomBattleMoves: ["earthquake", "gyroball", "psychic", "stealthrock"],
1904
1904
  },
@@ -1972,7 +1972,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1972
1972
  tier: "LC",
1973
1973
  },
1974
1974
  abomasnow: {
1975
- tier: "NU",
1975
+ tier: "PU",
1976
1976
  doublesTier: "DOU",
1977
1977
  randomBattleMoves: ["auroraveil", "blizzard", "earthquake", "iceshard", "woodhammer"],
1978
1978
  },
@@ -1992,7 +1992,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
1992
1992
  randomBattleMoves: ["hydropump", "nastyplot", "thunderbolt", "trick", "voltswitch", "willowisp"],
1993
1993
  },
1994
1994
  rotomfrost: {
1995
- tier: "NU",
1995
+ tier: "PU",
1996
1996
  doublesTier: "DUU",
1997
1997
  randomBattleMoves: ["blizzard", "nastyplot", "thunderbolt", "trick", "voltswitch", "willowisp"],
1998
1998
  },
@@ -2012,7 +2012,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
2012
2012
  randomBattleMoves: ["psychic", "stealthrock", "thunderwave", "uturn", "yawn"],
2013
2013
  },
2014
2014
  mesprit: {
2015
- tier: "RU",
2015
+ tier: "NU",
2016
2016
  doublesTier: "DUU",
2017
2017
  randomBattleMoves: ["energyball", "healingwish", "icebeam", "nastyplot", "psychic", "thunderbolt", "uturn"],
2018
2018
  },
@@ -2052,7 +2052,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
2052
2052
  randomBattleMoves: ["aurasphere", "defog", "dracometeor", "shadowball", "willowisp"],
2053
2053
  },
2054
2054
  cresselia: {
2055
- tier: "UU",
2055
+ tier: "RU",
2056
2056
  doublesTier: "DOU",
2057
2057
  randomBattleMoves: ["calmmind", "moonblast", "moonlight", "psychic", "thunderwave"],
2058
2058
  },