Advertisement
Guest User

M4A Windstorm Ability version 2

a guest
Sep 15th, 2020
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. windstorm: {
  2. 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.",
  3. shortDesc: "Hits with Flying-type Future Sight after using status moves.",
  4. onSourceHit(target, source, move) {
  5. if (!move || !target) return;
  6. if (move.category == 'Status') {
  7. for (const target of pokemon.side.foe.active) {
  8. if (!target.side.addSlotCondition(target, 'futuremove')) return false;
  9. Object.assign(target.side.slotConditions[target.position]['futuremove'], {
  10. duration: 3,
  11. move: 'windstorm',
  12. source: source,
  13. moveData: {
  14. id: 'windstorm',
  15. name: "Windstorm",
  16. accuracy: 100,
  17. basePower: 120,
  18. category: "Special",
  19. priority: 0,
  20. flags: {},
  21. ignoreImmunity: false,
  22. effectType: 'Move',
  23. isFutureMove: true,
  24. type: 'Flying',
  25. },
  26. });
  27. this.add('-start', source, 'Ability: Windstorm');
  28. return null;
  29. }
  30. }
  31. },
  32. name: "Windstorm",
  33. rating: 3,
  34. num: -1008,
  35. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement