Advertisement
DG22

Storm Shelter

May 13th, 2022 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. stormshelter: {
  2. availability: {clover: 1},
  3. onTryHit(target, source, move) {
  4. if (['raindance', 'primordialsea'].includes(target.effectiveWeather()) && target !== source && move.type === 'Water') {
  5. this.add('-immune', target, '[from] ability: Storm Shelter');
  6. return null;
  7. } else if (['sunnyday', 'desolateland'].includes(target.effectiveWeather()) && target !== source && move.type === 'Fire') {
  8. this.add('-immune', target, '[from] ability: Storm Shelter');
  9. return null;
  10. } else if (['hail'].includes(target.effectiveWeather()) && target !== source && move.type === 'Ice') {
  11. this.add('-immune', target, '[from] ability: Storm Shelter');
  12. return null;
  13. } else if (['sandstorm'].includes(target.effectiveWeather())&&target !== source && move.type === 'Rock')) {
  14. this.add('-immune', target, '[from] ability: Storm Shelter');
  15. return null;
  16. }
  17. },
  18. isBreakable: true,
  19. name: "Storm Shelter",
  20. rating: 3,
  21. isNonstandard: "Future",
  22. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement