Advertisement
Guest User

M4A Windstorm Ability version 1

a guest
Sep 15th, 2020
673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. # WINDSTORM (MOVE) - add this to "moves.ts" without allowing anything to learn it
  2.  
  3. windstorm: {
  4. num: -1001,
  5. accuracy: 100,
  6. basePower: 120,
  7. category: "Special",
  8. desc: "Activated by the Ability Windstorm. Deals damage two turns after this move is used. At the end of that turn, the damage is calculated at that time and dealt to the Pokemon at the position the target had when the move was used. If the user is no longer active at the time, damage is calculated based on the user's natural Special Attack stat, types, and level, with no boosts from its held item or Ability. Fails if this move or Doom Desire is already in effect for the target's position.",
  9. shortDesc: "Hits two turns after being used.",
  10. name: "Windstorm",
  11. pp: 10,
  12. priority: 0,
  13. flags: {},
  14. ignoreImmunity: true,
  15. isFutureMove: true,
  16. onTry(source, target) {
  17. if (!target.side.addSlotCondition(target, 'futuremove')) return false;
  18. Object.assign(target.side.slotConditions[target.position]['futuremove'], {
  19. duration: 3,
  20. move: 'windstorm',
  21. source: source,
  22. moveData: {
  23. id: 'windstorm',
  24. name: "Windstorm",
  25. accuracy: 100,
  26. basePower: 120,
  27. category: "Special",
  28. priority: 0,
  29. flags: {},
  30. ignoreImmunity: false,
  31. effectType: 'Move',
  32. isFutureMove: true,
  33. type: 'Flying',
  34. },
  35. });
  36. this.add('-start', source, 'move: Windstorm');
  37. return null;
  38. },
  39. secondary: null,
  40. target: "normal",
  41. type: "Flying",
  42. contestType: "Clever",
  43. },
  44.  
  45. # WINDSTORM (ABILITY) - add this to "abilities.ts"
  46.  
  47. windstorm: {
  48. desc: "Deals Flying-type damage in the same way as Future Sight two turns after using any status move. At the end of that turn, the damage is calculated at that time and dealt to the Pokemon at the position the target had when the move was used. If the user is no longer active at the time, damage is calculated based on the user's natural Special Attack stat, types, and level, with no boosts from its held item or Ability. Fails if this Ability, Future Sight or Doom Desire is already in effect for the target's position.",
  49. shortDesc: "Hits with Flying-type Future Sight after using status moves.",
  50. onSourceHit(target, source, move) {
  51. if (!move || !target) return;
  52. if (move.category == 'Status') {
  53. this.useMove('windstorm', source);
  54. }
  55. },
  56. name: "Windstorm",
  57. rating: 3,
  58. num: -1008,
  59. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement