@pkmn/sim 0.6.1 → 0.6.2

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.
Files changed (43) hide show
  1. package/build/config/formats.js +71 -97
  2. package/build/config/formats.js.map +1 -1
  3. package/build/data/aliases.js +2 -2
  4. package/build/data/aliases.js.map +1 -1
  5. package/build/data/formats-data.js +111 -115
  6. package/build/data/formats-data.js.map +1 -1
  7. package/build/data/items.js +7 -1
  8. package/build/data/items.js.map +1 -1
  9. package/build/data/learnsets.js +3 -2
  10. package/build/data/learnsets.js.map +1 -1
  11. package/build/data/mods/gen1/moves.js +0 -10
  12. package/build/data/mods/gen1/moves.js.map +1 -1
  13. package/build/data/mods/gen1/scripts.js +15 -14
  14. package/build/data/mods/gen1/scripts.js.map +1 -1
  15. package/build/data/mods/gen2/moves.js +0 -1
  16. package/build/data/mods/gen2/moves.js.map +1 -1
  17. package/build/data/moves.js +44 -25
  18. package/build/data/moves.js.map +1 -1
  19. package/build/data/pokedex.js +1 -1
  20. package/build/sim/dex-conditions.d.ts +1 -0
  21. package/build/sim/dex-conditions.js.map +1 -1
  22. package/build/sim/field.js +1 -0
  23. package/build/sim/field.js.map +1 -1
  24. package/build/sim/pokemon.js +2 -10
  25. package/build/sim/pokemon.js.map +1 -1
  26. package/build/sim/team-validator.d.ts +2 -2
  27. package/build/sim/team-validator.js +19 -14
  28. package/build/sim/team-validator.js.map +1 -1
  29. package/config/formats.ts +75 -103
  30. package/data/aliases.ts +2 -2
  31. package/data/formats-data.ts +111 -115
  32. package/data/items.ts +7 -1
  33. package/data/learnsets.ts +3 -2
  34. package/data/mods/gen1/moves.ts +0 -10
  35. package/data/mods/gen1/scripts.ts +14 -14
  36. package/data/mods/gen2/moves.ts +0 -1
  37. package/data/moves.ts +43 -23
  38. package/data/pokedex.ts +1 -1
  39. package/package.json +1 -1
  40. package/sim/dex-conditions.ts +1 -0
  41. package/sim/field.ts +1 -0
  42. package/sim/pokemon.ts +1 -8
  43. package/sim/team-validator.ts +27 -15
@@ -4668,7 +4668,13 @@ exports.Items = {
4668
4668
  fling: {
4669
4669
  basePower: 100,
4670
4670
  },
4671
- onUpdate(pokemon) {
4671
+ onStart(pokemon) {
4672
+ if (!pokemon.ignoringItem() && this.field.getPseudoWeather('trickroom')) {
4673
+ pokemon.useItem();
4674
+ }
4675
+ },
4676
+ onAnyPseudoWeatherStart() {
4677
+ const pokemon = this.effectState.target;
4672
4678
  if (this.field.getPseudoWeather('trickroom')) {
4673
4679
  pokemon.useItem();
4674
4680
  }