Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaD173 committed Oct 27, 2024
2 parents 7a75bea + 8fd2eca commit 9392280
Show file tree
Hide file tree
Showing 25 changed files with 202 additions and 108 deletions.
9 changes: 5 additions & 4 deletions config/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -948,9 +948,10 @@ export const Formats: import('../sim/dex-formats').FormatList = [
ruleset: ['Standard OMs', 'Sleep Moves Clause', 'Inverse Mod', 'Terastal Clause'],
banlist: [
'Arceus', 'Baxcalibur', 'Calyrex-Ice', 'Calyrex-Shadow', 'Chien-Pao', 'Deoxys-Attack', 'Deoxys-Normal', 'Deoxys-Speed', 'Espathra', 'Eternatus', 'Flutter Mane',
'Giratina-Origin', 'Groudon', 'Ho-Oh', 'Koraidon', 'Kyogre', 'Kyurem', 'Kyurem-Black', 'Kyurem-White', 'Lunala', 'Maushold', 'Mewtwo', 'Miraidon', 'Necrozma-Dawn-Wings',
'Palkia', 'Palkia-Origin', 'Porygon-Z', 'Rayquaza', 'Regidrago', 'Regieleki', 'Reshiram', 'Rillaboom', 'Shaymin-Sky', 'Ursaluna', 'Ursaluna-Bloodmoon', 'Zacian',
'Zacian-Crowned', 'Zamazenta-Hero', 'Zekrom', 'Arena Trap', 'Moody', 'Shadow Tag', 'King\'s Rock', 'Light Clay', 'Baton Pass', 'Last Respects', 'Shed Tail',
'Giratina-Origin', 'Groudon', 'Ho-Oh', 'Indeedee', 'Indeedee-F', 'Koraidon', 'Kyogre', 'Kyurem', 'Kyurem-Black', 'Kyurem-White', 'Lunala', 'Maushold', 'Mewtwo',
'Miraidon', 'Necrozma-Dawn-Wings', 'Palafin', 'Palkia', 'Palkia-Origin', 'Porygon-Z', 'Rayquaza', 'Regidrago', 'Regieleki', 'Reshiram', 'Rillaboom', 'Shaymin-Sky',
'Spectrier', 'Ursaluna', 'Ursaluna-Bloodmoon', 'Zacian', 'Zacian-Crowned', 'Zamazenta-Hero', 'Zekrom', 'Arena Trap', 'Moody', 'Shadow Tag', 'King\'s Rock', 'Light Clay',
'Baton Pass', 'Last Respects', 'Shed Tail',
],
},
{
Expand Down Expand Up @@ -1164,7 +1165,7 @@ export const Formats: import('../sim/dex-formats').FormatList = [
'Walking Wake', 'Weavile', 'Zacian', 'Zacian-Crowned', 'Zekrom', 'Arena Trap', 'Comatose', 'Contrary', 'Fur Coat', 'Good as Gold', 'Gorilla Tactics', 'Huge Power', 'Ice Scales',
'Illusion', 'Imposter', 'Innards Out', 'Magic Bounce', 'Magnet Pull', 'Moody', 'Neutralizing Gas', 'Orichalcum Pulse', 'Parental Bond', 'Poison Heal', 'Pure Power', 'Shadow Tag',
'Simple', 'Speed Boost', 'Stakeout', 'Toxic Debris', 'Triage', 'Unburden', 'Water Bubble', 'Wonder Guard', 'King\'s Rock', 'Razor Fang', 'Baton Pass', 'Last Respects',
'Revival Blessing', 'Shed Tail',
'Shed Tail',
],
},
{
Expand Down
8 changes: 1 addition & 7 deletions data/formats-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1555,8 +1555,6 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
},
piloswine: {
tier: "NFE",
doublesTier: "NFE",
natDexTier: "NFE",
},
mamoswine: {
tier: "UU",
Expand Down Expand Up @@ -1714,8 +1712,6 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
},
combusken: {
tier: "NFE",
doublesTier: "NFE",
natDexTier: "NFE",
},
blaziken: {
tier: "UUBL",
Expand Down Expand Up @@ -4661,7 +4657,7 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
},
thwackey: {
tier: "SU",
doublesTier: "DUU",
doublesTier: "NFE",
natDexTier: "NFE",
},
rillaboom: {
Expand Down Expand Up @@ -5176,8 +5172,6 @@ export const FormatsData: import('../sim/dex-species').SpeciesFormatsDataTable =
},
quaxwell: {
tier: "NFE",
doublesTier: "NFE",
natDexTier: "NFE",
},
quaquaval: {
tier: "UU",
Expand Down
4 changes: 2 additions & 2 deletions data/mods/gen5bw1/pokedex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export const Pokedex: import('../../../sim/dex-species').ModdedSpeciesDataTable
inherit: true,
unreleasedHidden: true,
},
lillpup: {
lillipup: {
inherit: true,
unreleasedHidden: true,
},
Expand Down Expand Up @@ -383,7 +383,7 @@ export const Pokedex: import('../../../sim/dex-species').ModdedSpeciesDataTable
inherit: true,
unreleasedHidden: true,
},
lillgant: {
lilligant: {
inherit: true,
unreleasedHidden: true,
},
Expand Down
14 changes: 13 additions & 1 deletion data/mods/gen9predlc/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,19 @@ export const Abilities: import('../../../sim/dex-abilities').ModdedAbilityDataTa
inherit: true,
isNonstandard: "Future",
},
embodyaspect: {
embodyaspectcornerstone: {
inherit: true,
isNonstandard: "Future",
},
embodyaspecthearthflame: {
inherit: true,
isNonstandard: "Future",
},
embodyaspectteal: {
inherit: true,
isNonstandard: "Future",
},
embodyaspectwellspring: {
inherit: true,
isNonstandard: "Future",
},
Expand Down
2 changes: 1 addition & 1 deletion data/mods/gen9ssb/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const Items: import('../../../sim/dex-items').ModdedItemDataTable = {
},
// Arya
flygonite: {
inherit: true,
name: "Flygonite",
spritenum: 111,
itemUser: ["Flygon"],
megaEvolves: "Flygon",
Expand Down
2 changes: 1 addition & 1 deletion data/mods/gen9ssb/pokedex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ export const Pokedex: import('../../../sim/dex-species').ModdedSpeciesDataTable
abilities: {0: "Yellow Magic"},
},

ninetaleslola: {
ninetalesalola: {
inherit: true,
abilities: {0: "Party Up"},
},
Expand Down
2 changes: 1 addition & 1 deletion data/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3131,7 +3131,7 @@ export const Moves: import('../sim/dex-moves').MoveDataTable = {
flags: {mirror: 1, metronome: 1},
onHitField(target, source) {
const sideConditions = [
'mist', 'lightscreen', 'reflect', 'spikes', 'safeguard', 'tailwind', 'toxicspikes', 'stealthrock', 'waterpledge', 'firepledge', 'grasspledge', 'stickyweb', 'auroraveil', 'gmaxsteelsurge', 'gmaxcannonade', 'gmaxvinelash', 'gmaxwildfire',
'mist', 'lightscreen', 'reflect', 'spikes', 'safeguard', 'tailwind', 'toxicspikes', 'stealthrock', 'waterpledge', 'firepledge', 'grasspledge', 'stickyweb', 'auroraveil', 'luckychant', 'gmaxsteelsurge', 'gmaxcannonade', 'gmaxvinelash', 'gmaxwildfire', 'gmaxvolcalith',
];
let success = false;
if (this.gameType === "freeforall") {
Expand Down
6 changes: 1 addition & 5 deletions data/random-battles/gen2/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -984,11 +984,7 @@
},
{
"role": "Bulky Support",
"movepool": ["nightshade", "rest", "sleeptalk", "toxic"]
},
{
"role": "Bulky Setup",
"movepool": ["curse", "rest", "return", "sleeptalk"]
"movepool": ["curse", "nightshade", "rest", "return", "sleeptalk"]
}
]
},
Expand Down
5 changes: 2 additions & 3 deletions data/random-battles/gen3/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2590,9 +2590,8 @@
"sets": [
{
"role": "Wallbreaker",
"movepool": ["dragonclaw", "earthquake", "fireblast", "hiddenpowerbug", "rockslide"],
"abilities": ["Levitate"],
"preferredTypes": ["Bug", "Rock"]
"movepool": ["earthquake", "hiddenpowerbug", "quickattack", "rockslide"],
"abilities": ["Levitate"]
},
{
"role": "Staller",
Expand Down
3 changes: 3 additions & 0 deletions data/random-battles/gen3/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,9 @@ export class RandomGen3Teams extends RandomGen4Teams {
// Limit to one of each species (Species Clause)
if (baseFormes[species.baseSpecies]) continue;

// Prevent Shedinja from generating after Tyranitar
if (species.name === 'Shedinja' && teamDetails.sand) continue;

// Limit to one Wobbuffet per battle (not just per team)
if (species.name === 'Wobbuffet' && this.battleHasWobbuffet) continue;
// Limit to one Ditto per battle in Gen 2
Expand Down
10 changes: 5 additions & 5 deletions data/random-battles/gen4/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -1188,13 +1188,13 @@
"level": 85,
"sets": [
{
"role": "Staller",
"movepool": ["healbell", "moonlight", "payback", "toxic"],
"role": "Bulky Support",
"movepool": ["curse", "healbell", "moonlight", "payback", "toxic"],
"abilities": ["Synchronize"]
},
{
"role": "Bulky Support",
"movepool": ["curse", "payback", "protect", "toxic", "wish"],
"role": "Staller",
"movepool": ["payback", "protect", "toxic", "wish"],
"abilities": ["Synchronize"]
}
]
Expand Down Expand Up @@ -2936,7 +2936,7 @@
},
{
"role": "Setup Sweeper",
"movepool": ["aquajet", "bulkup", "icepunch", "return", "substitute", "waterfall"],
"movepool": ["bulkup", "icepunch", "return", "substitute", "waterfall"],
"abilities": ["Swift Swim"]
}
]
Expand Down
2 changes: 1 addition & 1 deletion data/random-battles/gen4/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class RandomGen4Teams extends RandomGen5Teams {
}

// Develop additional move lists
const badWithSetup = ['healbell', 'pursuit', 'toxic'];
const badWithSetup = ['pursuit', 'toxic'];
const statusMoves = this.dex.moves.all()
.filter(move => move.category === 'Status')
.map(move => move.id);
Expand Down
4 changes: 2 additions & 2 deletions data/random-battles/gen5/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
"sets": [
{
"role": "Fast Attacker",
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "psyshock", "scald"],
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "scald"],
"abilities": ["Cloud Nine", "Swift Swim"],
"preferredTypes": ["Ice"]
}
Expand Down Expand Up @@ -2954,7 +2954,7 @@
},
{
"role": "Setup Sweeper",
"movepool": ["aquajet", "bulkup", "crunch", "icepunch", "lowkick", "substitute", "waterfall"],
"movepool": ["bulkup", "crunch", "icepunch", "lowkick", "substitute", "waterfall"],
"abilities": ["Water Veil"],
"preferredTypes": ["Ice"]
}
Expand Down
3 changes: 3 additions & 0 deletions data/random-battles/gen5/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,9 @@ export class RandomGen5Teams extends RandomGen6Teams {
// Illusion shouldn't be in the last slot
if (species.name === 'Zoroark' && pokemon.length >= (this.maxTeamSize - 1)) continue;

// Prevent Shedinja from generating after Sandstorm/Hail setters
if (species.name === 'Shedinja' && (teamDetails.sand || teamDetails.hail)) continue;

// Dynamically scale limits for different team sizes. The default and minimum value is 1.
const limitFactor = Math.round(this.maxTeamSize / 6) || 1;

Expand Down
9 changes: 5 additions & 4 deletions data/random-battles/gen6/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
"sets": [
{
"role": "Fast Attacker",
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "psyshock", "scald"],
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "scald"],
"abilities": ["Cloud Nine", "Swift Swim"],
"preferredTypes": ["Ice"]
}
Expand Down Expand Up @@ -1544,7 +1544,7 @@
"sets": [
{
"role": "Wallbreaker",
"movepool": ["closecombat", "pinmissile", "rockblast", "substitute", "swordsdance"],
"movepool": ["closecombat", "earthquake", "knockoff", "pinmissile", "rockblast", "substitute", "swordsdance"],
"abilities": ["Moxie"],
"preferredTypes": ["Rock"]
}
Expand Down Expand Up @@ -2622,7 +2622,8 @@
{
"role": "Bulky Attacker",
"movepool": ["fireblast", "icebeam", "return", "scald", "thunderbolt", "thunderwave"],
"abilities": ["Forecast"]
"abilities": ["Forecast"],
"preferredTypes": ["Water"]
}
]
},
Expand Down Expand Up @@ -3310,7 +3311,7 @@
"sets": [
{
"role": "Setup Sweeper",
"movepool": ["aquajet", "bulkup", "icepunch", "lowkick", "substitute", "waterfall"],
"movepool": ["bulkup", "icepunch", "lowkick", "substitute", "waterfall"],
"abilities": ["Water Veil"],
"preferredTypes": ["Ice"]
},
Expand Down
10 changes: 8 additions & 2 deletions data/random-battles/gen6/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,14 @@ export class RandomGen6Teams extends RandomGen7Teams {
}
if (moves.has('outrage') && counter.get('setup')) return 'Lum Berry';
if (
(ability === 'Rough Skin') || (species.id !== 'hooh' &&
ability === 'Regenerator' && species.baseStats.hp + species.baseStats.def >= 180 && this.randomChance(1, 2))
(ability === 'Rough Skin') || (
species.id !== 'hooh' &&
ability === 'Regenerator' && species.baseStats.hp + species.baseStats.def >= 180 && this.randomChance(1, 2)
) || (
ability !== 'Regenerator' && !counter.get('setup') && counter.get('recovery') &&
this.dex.getEffectiveness('Fighting', species) < 1 &&
(species.baseStats.hp + species.baseStats.def) > 200 && this.randomChance(1, 2)
)
) return 'Rocky Helmet';
if (['kingsshield', 'protect', 'spikyshield', 'substitute'].some(m => moves.has(m))) return 'Leftovers';
if (
Expand Down
16 changes: 11 additions & 5 deletions data/random-battles/gen7/sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
"sets": [
{
"role": "Fast Attacker",
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "psyshock", "scald"],
"movepool": ["calmmind", "encore", "focusblast", "hydropump", "icebeam", "scald"],
"abilities": ["Cloud Nine", "Swift Swim"],
"preferredTypes": ["Ice"]
}
Expand Down Expand Up @@ -1774,7 +1774,7 @@
"sets": [
{
"role": "Wallbreaker",
"movepool": ["closecombat", "pinmissile", "rockblast", "substitute", "swordsdance"],
"movepool": ["closecombat", "earthquake", "knockoff", "pinmissile", "rockblast", "substitute", "swordsdance"],
"abilities": ["Moxie"],
"preferredTypes": ["Rock"]
}
Expand Down Expand Up @@ -2870,8 +2870,9 @@
"sets": [
{
"role": "Bulky Attacker",
"movepool": ["fireblast", "icebeam", "return", "scald", "thunderbolt", "thunderwave"],
"abilities": ["Forecast"]
"movepool": ["defog", "fireblast", "icebeam", "return", "scald", "thunderbolt", "thunderwave"],
"abilities": ["Forecast"],
"preferredTypes": ["Water"]
}
]
},
Expand Down Expand Up @@ -3592,7 +3593,7 @@
"sets": [
{
"role": "Setup Sweeper",
"movepool": ["aquajet", "bulkup", "icepunch", "liquidation", "lowkick", "substitute"],
"movepool": ["bulkup", "icepunch", "liquidation", "lowkick", "substitute"],
"abilities": ["Water Veil"],
"preferredTypes": ["Ice"]
},
Expand Down Expand Up @@ -5163,6 +5164,11 @@
"movepool": ["airslash", "energyball", "heatwave", "icebeam", "psychic", "psyshock"],
"abilities": ["Tinted Lens"],
"preferredTypes": ["Psychic"]
},
{
"role": "Bulky Setup",
"movepool": ["airslash", "cosmicpower", "roost", "storedpower"],
"abilities": ["Magic Guard"]
}
]
},
Expand Down
10 changes: 8 additions & 2 deletions data/random-battles/gen7/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,14 @@ export class RandomGen7Teams extends RandomGen8Teams {
}
if (moves.has('outrage') && counter.get('setup')) return 'Lum Berry';
if (
(ability === 'Rough Skin') || (species.id !== 'hooh' &&
ability === 'Regenerator' && species.baseStats.hp + species.baseStats.def >= 180 && this.randomChance(1, 2))
(ability === 'Rough Skin') || (
species.id !== 'hooh' &&
ability === 'Regenerator' && species.baseStats.hp + species.baseStats.def >= 180 && this.randomChance(1, 2)
) || (
ability !== 'Regenerator' && !counter.get('setup') && counter.get('recovery') &&
this.dex.getEffectiveness('Fighting', species) < 1 &&
(species.baseStats.hp + species.baseStats.def) > 200 && this.randomChance(1, 2)
)
) return 'Rocky Helmet';
if (['kingsshield', 'protect', 'spikyshield', 'substitute'].some(m => moves.has(m))) return 'Leftovers';
if (
Expand Down
8 changes: 4 additions & 4 deletions data/random-battles/gen8/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
},
"golduck": {
"level": 85,
"moves": ["calmmind", "focusblast", "icebeam", "psyshock", "scald", "substitute"],
"moves": ["calmmind", "focusblast", "icebeam", "scald", "substitute"],
"doublesLevel": 88,
"doublesMoves": ["calmmind", "encore", "icebeam", "muddywater", "protect"]
},
Expand Down Expand Up @@ -898,7 +898,7 @@
},
"salamence": {
"level": 75,
"moves": ["dragondance", "dualwingbeat", "earthquake", "outrage", "roost"],
"moves": ["dragondance", "dualwingbeat", "earthquake", "outrage"],
"doublesLevel": 79,
"doublesMoves": ["dragonclaw", "fireblast", "hurricane", "protect", "tailwind"]
},
Expand Down Expand Up @@ -953,7 +953,7 @@
},
"rayquaza": {
"level": 73,
"moves": ["dracometeor", "dragonascent", "dragondance", "earthquake", "extremespeed", "swordsdance", "vcreate"],
"moves": ["dragonascent", "dragondance", "earthquake", "extremespeed", "swordsdance", "vcreate"],
"doublesLevel": 74,
"doublesMoves": ["dracometeor", "dragonascent", "dragonclaw", "dragondance", "earthpower", "extremespeed", "vcreate"],
"noDynamaxMoves": ["dracometeor", "dragonascent", "dragondance", "earthquake", "extremespeed", "vcreate"]
Expand Down Expand Up @@ -1533,7 +1533,7 @@
},
"accelgor": {
"level": 90,
"moves": ["bugbuzz", "energyball", "focusblast", "sludgebomb", "spikes", "toxic", "yawn"],
"moves": ["bugbuzz", "energyball", "focusblast", "sludgebomb", "spikes", "toxicspikes", "yawn"],
"doublesLevel": 88,
"doublesMoves": ["acidspray", "bugbuzz", "encore", "energyball", "focusblast"],
"noDynamaxMoves": ["bugbuzz", "encore", "energyball", "focusblast", "spikes", "toxic"]
Expand Down
2 changes: 1 addition & 1 deletion data/random-battles/gen9/doubles-sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6043,7 +6043,7 @@
"sets": [
{
"role": "Choice Item user",
"movepool": ["Aqua Jet", "Liquidation", "Memento", "Stomping Tantrum", "Throat Chop"],
"movepool": ["Aqua Jet", "Liquidation", "Stomping Tantrum", "Throat Chop"],
"abilities": ["Gooey"],
"teraTypes": ["Dark", "Ground"]
}
Expand Down
Loading

0 comments on commit 9392280

Please sign in to comment.