Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stormshelter: {
- availability: {clover: 1},
- onTryHit(target, source, move) {
- if (['raindance', 'primordialsea'].includes(target.effectiveWeather()) && target !== source && move.type === 'Water') {
- this.add('-immune', target, '[from] ability: Storm Shelter');
- return null;
- } else if (['sunnyday', 'desolateland'].includes(target.effectiveWeather()) && target !== source && move.type === 'Fire') {
- this.add('-immune', target, '[from] ability: Storm Shelter');
- return null;
- } else if (['hail'].includes(target.effectiveWeather()) && target !== source && move.type === 'Ice') {
- this.add('-immune', target, '[from] ability: Storm Shelter');
- return null;
- } else if (['sandstorm'].includes(target.effectiveWeather())&&target !== source && move.type === 'Rock')) {
- this.add('-immune', target, '[from] ability: Storm Shelter');
- return null;
- }
- },
- isBreakable: true,
- name: "Storm Shelter",
- rating: 3,
- isNonstandard: "Future",
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement