Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- coldsweat: {
- desc: "On switch-in, this Pokémon summons hail. It changes the weather to rain if any opposing Pokémon has an attack that is super effective on this Pokémon or an OHKO move. Counter, Metal Burst, and Mirror Coat count as attacking moves of their respective types, Hidden Power counts as its determined type, and Judgment, Multi-Attack, Natural Gift, Revelation Dance, Techno Blast, and Weather Ball are considered Normal-type moves.",
- shortDesc: "On switch-in, this Pokémon summons hail. Summons rain if the foe has a supereffective or OHKO move.",
- onStart(source) {
- this.field.setWeather('hail');
- },
- onStart(pokemon) {
- for (const target of pokemon.side.foe.active) {
- if (!target || target.fainted) continue;
- for (const moveSlot of target.moveSlots) {
- const move = this.dex.getMove(moveSlot.move);
- if (move.category === 'Status') continue;
- const moveType = move.id === 'hiddenpower' ? target.hpType : move.type;
- if (
- this.dex.getImmunity(moveType, pokemon) && this.dex.getEffectiveness(moveType, pokemon) > 0 ||
- move.ohko
- ) {
- this.field.setWeather('raindance');
- this.add('-ability', pokemon, 'Cold Sweat');
- return;
- }
- }
- }
- },
- onFoeSwitchIn(target) {
- if (!target || target.fainted) continue;
- for (const moveSlot of target.moveSlots) {
- const move = this.dex.getMove(moveSlot.move);
- if (move.category === 'Status') continue;
- const moveType = move.id === 'hiddenpower' ? target.hpType : move.type;
- if (
- this.dex.getImmunity(moveType, pokemon) && this.dex.getEffectiveness(moveType, pokemon) > 0 ||
- move.ohko
- ) {
- this.field.setWeather('raindance');
- this.add('-ability', pokemon, 'Cold Sweat');
- return;
- }
- }
- },
- name: "Cold Sweat",
- rating: 4,
- num: -1007,
- },
Add Comment
Please, Sign In to add comment