@pkmn/sim 0.5.18 → 0.5.19

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.
@@ -7916,9 +7916,8 @@ exports.Moves = {
7916
7916
  pp: 10,
7917
7917
  priority: 0,
7918
7918
  flags: { snatch: 1, heal: 1 },
7919
- onHit(target, source, move) {
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
- onHit(target, source, move) {
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;