@pkmn/mods 0.10.5 → 0.10.7

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.
@@ -6124,8 +6124,8 @@ var Moves = {
6124
6124
  inherit: true,
6125
6125
  desc: "A random move that was introduced in gen 1 is selected for use, other than Counter, Mimic, Mirror Move, Struggle, or Transform.",
6126
6126
  shortDesc: "Picks a random move from gen 1.",
6127
- onHit(target, source, effect) {
6128
- const moves = this.dex.moves.all().filter((move) => move.gen === 1 && move.flags["metronome"]);
6127
+ onHit(target) {
6128
+ const moves = this.dex.moves.all().filter((move) => (!move.isNonstandard || move.isNonstandard === "Unobtainable") && move.flags["metronome"] && move.gen === 1);
6129
6129
  let randomMove = "";
6130
6130
  if (moves.length) {
6131
6131
  moves.sort((a, b) => a.num - b.num);