Skip to content

Commit

Permalink
Merge branch 'smogon:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaD173 authored Dec 30, 2023
2 parents 63f8b17 + 8568fa5 commit c0ad9fd
Show file tree
Hide file tree
Showing 34 changed files with 1,709 additions and 275 deletions.
164 changes: 94 additions & 70 deletions config/formats.ts

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions data/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4659,6 +4659,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
},
teraformzero: {
onAfterTerastallization(pokemon) {
if (pokemon.baseSpecies.name !== 'Terapagos-Stellar') return;
if (this.field.weather || this.field.terrain) {
this.add('-ability', pokemon, 'Teraform Zero');
this.field.clearWeather();
Expand All @@ -4670,10 +4671,10 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
num: 309,
},
terashell: {
// TODO figure out if this only works on Terapagos
onEffectiveness(typeMod, target, type, move) {
if (!target || target.species.name !== 'Terapagos-Terastal') return;
if (this.effectState.resisted) return -1; // all hits of multi-hit move should be not very effective
if (!target || move.category === 'Status') return;
if (move.category === 'Status') return;
if (!target.runImmunity(move.type)) return; // immunity has priority
if (target.hp < target.maxhp) return;

Expand Down
8 changes: 4 additions & 4 deletions data/formats-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2862,7 +2862,7 @@ export const FormatsData: {[k: string]: SpeciesFormatsData} = {
darkrai: {
tier: "OU",
doublesTier: "DUber",
natDexTier: "Uber",
natDexTier: "OU",
},
shaymin: {
tier: "NU",
Expand Down Expand Up @@ -3216,7 +3216,7 @@ export const FormatsData: {[k: string]: SpeciesFormatsData} = {
natDexTier: "RU",
},
scraggy: {
tier: "LC",
tier: "NFE",
},
scrafty: {
tier: "OU",
Expand Down Expand Up @@ -3652,7 +3652,7 @@ export const FormatsData: {[k: string]: SpeciesFormatsData} = {
},
kyuremblack: {
tier: "Uber",
doublesTier: "DOU",
doublesTier: "DUber",
natDexTier: "Uber",
},
kyuremwhite: {
Expand Down Expand Up @@ -5484,7 +5484,7 @@ export const FormatsData: {[k: string]: SpeciesFormatsData} = {
natDexTier: "UU",
},
ironjugulis: {
tier: "RU",
tier: "RUBL",
doublesTier: "(DUU)",
natDexTier: "RU",
},
Expand Down
2 changes: 1 addition & 1 deletion data/mods/gen3/formats-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {
tier: "8U",
},
delcatty: {
tier: "ZU",
tier: "ZUBL",
},
sableye: {
tier: "NU",
Expand Down
11 changes: 8 additions & 3 deletions data/mods/gen4/random-sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
"sets": [
{
"role": "Fast Attacker",
"movepool": ["encore", "focusblast", "psychic", "shadowball", "substitute", "trick"],
"movepool": ["calmmind", "encore", "focusblast", "psychic", "shadowball", "substitute", "trick"],
"preferredTypes": ["Fighting"]
}
]
Expand Down Expand Up @@ -1673,6 +1673,10 @@
{
"role": "Bulky Support",
"movepool": ["recover", "seismictoss", "taunt", "toxic", "willowisp"]
},
{
"role": "Bulky Attacker",
"movepool": ["payback", "recover", "seismictoss", "toxic", "willowisp"]
}
]
},
Expand Down Expand Up @@ -2501,7 +2505,8 @@
"sets": [
{
"role": "Fast Attacker",
"movepool": ["aquajet", "crunch", "icepunch", "return", "waterfall"]
"movepool": ["aquajet", "crunch", "icepunch", "return", "waterfall"],
"preferredTypes": ["Ice"]
},
{
"role": "Setup Sweeper",
Expand Down Expand Up @@ -2612,7 +2617,7 @@
"sets": [
{
"role": "Bulky Support",
"movepool": ["earthquake", "explosion", "ironhead", "lightscreen", "payback", "reflect", "stealthrock", "toxic"]
"movepool": ["earthquake", "explosion", "ironhead", "payback", "stealthrock", "toxic"]
},
{
"role": "Staller",
Expand Down
7 changes: 4 additions & 3 deletions data/mods/gen4/random-teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export class RandomGen4Teams extends RandomGen5Teams {
['discharge', 'thunderbolt'],
['gunkshot', 'poisonjab'],
['payback', 'pursuit'],
['protect', 'swordsdance'],

// Assorted hardcodes go here:
// Manectric
Expand Down Expand Up @@ -463,8 +464,8 @@ export class RandomGen4Teams extends RandomGen5Teams {
role: RandomTeamsTypes.Role
): boolean {
switch (ability) {
case 'Hustle': case 'Ice Body': case 'Rain Dish': case 'Sand Veil': case 'Snow Cloak': case 'Solar Power':
case 'Steadfast': case 'Sticky Hold': case 'Unaware':
case 'Hustle': case 'Ice Body': case 'Rain Dish': case 'Sand Veil': case 'Sniper': case 'Snow Cloak':
case 'Solar Power': case 'Steadfast': case 'Sticky Hold': case 'Unaware':
return true;
case 'Chlorophyll':
return !moves.has('sunnyday') && !teamDetails.sun;
Expand All @@ -480,7 +481,7 @@ export class RandomGen4Teams extends RandomGen5Teams {
case 'Skill Link':
return !counter.get('skilllink');
case 'Swarm':
return !counter.get('Bug');
return !counter.get('Bug') && !moves.has('uturn');
case 'Technician':
return !counter.get('technician');
}
Expand Down
12 changes: 7 additions & 5 deletions data/mods/gen5/random-sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
"sets": [
{
"role": "Wallbreaker",
"movepool": ["crunch", "facade", "flamewheel", "protect", "suckerpunch", "swordsdance", "uturn"]
"movepool": ["crunch", "facade", "flamewheel", "protect", "suckerpunch", "swordsdance", "uturn"],
"preferredTypes": ["Dark"]
}
]
},
Expand Down Expand Up @@ -443,7 +444,7 @@
"sets": [
{
"role": "Bulky Support",
"movepool": ["focusblast", "foulplay", "lightscreen", "protect", "psychic", "reflect", "thunderwave", "toxic", "wish"]
"movepool": ["focusblast", "foulplay", "protect", "psychic", "thunderwave", "toxic", "wish"]
},
{
"role": "Staller",
Expand Down Expand Up @@ -1804,7 +1805,7 @@
"sets": [
{
"role": "Bulky Support",
"movepool": ["bugbuzz", "encore", "roost", "thunderwave", "wish"]
"movepool": ["bugbuzz", "encore", "roost", "thunderwave"]
}
]
},
Expand Down Expand Up @@ -2527,7 +2528,8 @@
"sets": [
{
"role": "Fast Attacker",
"movepool": ["aquajet", "crunch", "icepunch", "lowkick", "switcheroo", "waterfall"]
"movepool": ["aquajet", "crunch", "icepunch", "lowkick", "switcheroo", "waterfall"],
"preferredTypes": ["Ice"]
},
{
"role": "Setup Sweeper",
Expand Down Expand Up @@ -2630,7 +2632,7 @@
"sets": [
{
"role": "Bulky Support",
"movepool": ["earthquake", "hypnosis", "lightscreen", "psychic", "reflect", "stealthrock", "toxic"]
"movepool": ["earthquake", "hypnosis", "psychic", "stealthrock", "toxic"]
},
{
"role": "Staller",
Expand Down
12 changes: 7 additions & 5 deletions data/mods/gen5/random-teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ export class RandomGen5Teams extends RandomGen6Teams {
if (!abilities.has('Prankster') && role !== 'Staller') {
this.incompatibleMoves(moves, movePool, statusInflictingMoves, statusInflictingMoves);
}

if (abilities.has('Guts')) this.incompatibleMoves(moves, movePool, 'protect', 'swordsdance');
}

// Generate random moveset for a given species, role, preferred type.
Expand Down Expand Up @@ -281,7 +283,7 @@ export class RandomGen5Teams extends RandomGen6Teams {
movePool, preferredType, role);
}

// Enforce Seismic Toss, Spore
// Enforce Seismic Toss and Spore
for (const moveid of ['seismictoss', 'spore']) {
if (movePool.includes(moveid)) {
counter = this.addMove(moveid, moves, types, abilities, teamDetails, species, isLead, isDoubles,
Expand Down Expand Up @@ -490,7 +492,7 @@ export class RandomGen5Teams extends RandomGen6Teams {
): boolean {
switch (ability) {
case 'Flare Boost': case 'Gluttony': case 'Hyper Cutter': case 'Ice Body': case 'Moody': case 'Pickpocket':
case 'Pressure': case 'Sand Veil': case 'Snow Cloak': case 'Steadfast': case 'Unburden':
case 'Pressure': case 'Sand Veil': case 'Sniper': case 'Snow Cloak': case 'Steadfast': case 'Unburden':
return true;
case 'Chlorophyll':
// Petal Dance is for Lilligant
Expand Down Expand Up @@ -527,7 +529,7 @@ export class RandomGen5Teams extends RandomGen6Teams {
case 'Overgrow':
return !counter.get('Grass');
case 'Prankster':
return !counter.get('Status');
return (!counter.get('Status') || (species.id === 'tornadus' && moves.has('bulkup')));
case 'Poison Heal':
return (species.id === 'breloom' && role === 'Fast Attacker');
case 'Synchronize':
Expand All @@ -551,7 +553,7 @@ export class RandomGen5Teams extends RandomGen6Teams {
case 'Sturdy':
return (!!counter.get('recoil') && !counter.get('recovery') || species.id === 'steelix' && !!counter.get('sheerforce'));
case 'Swarm':
return !counter.get('Bug');
return !counter.get('Bug') && !moves.has('uturn');
case 'Technician':
return (!counter.get('technician') || moves.has('tailslap'));
case 'Tinted Lens':
Expand Down Expand Up @@ -603,7 +605,7 @@ export class RandomGen5Teams extends RandomGen6Teams {
if (species.id === 'mandibuzz') return 'Overcoat';
// If Ambipom doesn't qualify for Technician, Skill Link is useless on it
if (species.id === 'ambipom' && !counter.get('technician')) return 'Pickup';
if (['spiritomb', 'vespiquen', 'wailord', 'weavile'].includes(species.id)) return 'Pressure';
if (['spiritomb', 'vespiquen', 'weavile'].includes(species.id)) return 'Pressure';
if (species.id === 'druddigon') return 'Rough Skin';
if (species.id === 'stunfisk') return 'Static';
if (species.id === 'zangoose') return 'Toxic Boost';
Expand Down
40 changes: 20 additions & 20 deletions data/mods/gen6/random-sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@
"sets": [
{
"role": "Wallbreaker",
"movepool": ["facade", "flamewheel", "protect", "suckerpunch", "swordsdance", "uturn"]
"movepool": ["crunch", "facade", "flamewheel", "protect", "suckerpunch", "swordsdance", "uturn"],
"preferredTypes": ["Dark"]
}
]
},
Expand Down Expand Up @@ -223,7 +224,7 @@
"sets": [
{
"role": "Bulky Support",
"movepool": ["dazzlinggleam", "fireblast", "healbell", "lightscreen", "protect", "reflect", "stealthrock", "thunderwave", "wish"]
"movepool": ["dazzlinggleam", "fireblast", "healbell", "knockoff", "protect", "stealthrock", "thunderwave", "wish"]
}
]
},
Expand Down Expand Up @@ -364,6 +365,10 @@
{
"role": "Wallbreaker",
"movepool": ["hiddenpowerfire", "knockoff", "powerwhip", "sleeppowder", "sludgebomb", "suckerpunch"]
},
{
"role": "Setup Sweeper",
"movepool": ["powerwhip", "sludgebomb", "sunnyday", "weatherball"]
}
]
},
Expand Down Expand Up @@ -501,7 +506,7 @@
"sets": [
{
"role": "Bulky Support",
"movepool": ["focusblast", "foulplay", "lightscreen", "protect", "psychic", "reflect", "thunderwave", "toxic", "wish"]
"movepool": ["focusblast", "foulplay", "protect", "psychic", "thunderwave", "toxic", "wish"]
},
{
"role": "Staller",
Expand Down Expand Up @@ -743,7 +748,7 @@
"sets": [
{
"role": "Bulky Support",
"movepool": ["freezedry", "healbell", "hydropump", "icebeam", "thunderbolt", "toxic"]
"movepool": ["freezedry", "healbell", "hydropump", "icebeam", "toxic"]
},
{
"role": "Staller",
Expand Down Expand Up @@ -2001,7 +2006,7 @@
"sets": [
{
"role": "Bulky Support",
"movepool": ["encore", "roost", "thunderwave", "toxic", "uturn"]
"movepool": ["encore", "roost", "thunderwave", "uturn"]
}
]
},
Expand All @@ -2010,7 +2015,7 @@
"sets": [
{
"role": "Bulky Support",
"movepool": ["bugbuzz", "encore", "roost", "thunderwave", "wish"]
"movepool": ["bugbuzz", "encore", "roost", "thunderwave"]
}
]
},
Expand Down Expand Up @@ -2356,7 +2361,8 @@
"sets": [
{
"role": "Wallbreaker",
"movepool": ["earthquake", "explosion", "freezedry", "iceshard", "return", "spikes"]
"movepool": ["earthquake", "explosion", "freezedry", "iceshard", "return", "spikes"],
"preferredTypes": ["Ground"]
}
]
},
Expand Down Expand Up @@ -2844,7 +2850,7 @@
{
"role": "Fast Attacker",
"movepool": ["aquajet", "crunch", "icepunch", "lowkick", "waterfall"],
"preferredTypes": ["Fighting"]
"preferredTypes": ["Ice"]
}
]
},
Expand Down Expand Up @@ -2954,7 +2960,7 @@
"sets": [
{
"role": "Bulky Support",
"movepool": ["earthquake", "ironhead", "lightscreen", "psychic", "reflect", "stealthrock", "toxic"]
"movepool": ["earthquake", "ironhead", "psychic", "stealthrock", "toxic"]
},
{
"role": "Staller",
Expand Down Expand Up @@ -4755,7 +4761,11 @@
"sets": [
{
"role": "Setup Sweeper",
"movepool": ["blazekick", "extremespeed", "ironhead", "shiftgear", "thunderbolt", "xscissor"]
"movepool": ["blazekick", "ironhead", "shiftgear", "thunderbolt", "xscissor"]
},
{
"role": "Wallbreaker",
"movepool": ["blazekick", "extremespeed", "ironhead", "uturn"]
},
{
"role": "Fast Attacker",
Expand All @@ -4764,16 +4774,6 @@
}
]
},
"genesectdouse": {
"level": 75,
"sets": [
{
"role": "Wallbreaker",
"movepool": ["bugbuzz", "extremespeed", "flamethrower", "icebeam", "ironhead", "technoblast", "thunderbolt", "uturn"],
"preferredTypes": ["Water"]
}
]
},
"chesnaught": {
"level": 85,
"sets": [
Expand Down
Loading

0 comments on commit c0ad9fd

Please sign in to comment.