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
livid-washed authored Nov 6, 2023
2 parents a222642 + 8d699f8 commit bd17e30
Show file tree
Hide file tree
Showing 12 changed files with 4,090 additions and 1,894 deletions.
17 changes: 9 additions & 8 deletions config/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,10 +705,10 @@ export const Formats: FormatList = [
banlist: [
'Arceus', 'Calyrex-Ice', 'Calyrex-Shadow', 'Cresselia', 'Dialga', 'Dialga-Origin', 'Dondozo', 'Dragapult', 'Enamorus-Base', 'Espathra', 'Eternatus',
'Flittle', 'Flutter Mane', 'Giratina', 'Giratina-Origin', 'Groudon', 'Hoopa-Unbound', 'Iron Bundle', 'Koraidon', 'Kyogre', 'Magearna', 'Mewtwo',
'Miraidon', 'Palkia', 'Palkia-Origin', 'Rayquaza', 'Regieleki', 'Sableye', 'Samurott-Hisui', 'Shaymin-Sky', 'Slaking', 'Spectrier', 'Torkoal',
'Ursaluna-Base', 'Urshifu-Base', 'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned', 'Arena Trap', 'Huge Power', 'Imposter', 'Magnet Pull',
'Moody', 'Poison Heal', 'Pure Power', 'Shadow Tag', 'King\'s Rock', 'Razor Fang', 'Baton Pass', 'Fillet Away', 'Last Respects', 'Rage Fist',
'Shed Tail', 'Shell Smash',
'Miraidon', 'Palkia', 'Palkia-Origin', 'Rayquaza', 'Regieleki', 'Sableye', 'Samurott-Hisui', 'Scream Tail', 'Shaymin-Sky', 'Slaking', 'Spectrier',
'Torkoal', 'Ursaluna-Base', 'Urshifu-Base', 'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned', 'Arena Trap', 'Huge Power', 'Imposter',
'Magnet Pull', 'Moody', 'Poison Heal', 'Pure Power', 'Shadow Tag', 'Stakeout', 'King\'s Rock', 'Razor Fang', 'Baton Pass', 'Fillet Away',
'Last Respects', 'Rage Fist', 'Shed Tail', 'Shell Smash',
],
getEvoFamily(speciesid) {
let species = Dex.species.get(speciesid);
Expand Down Expand Up @@ -775,7 +775,8 @@ export const Formats: FormatList = [

set.species = donorSpecies.name;
set.name = donorSpecies.baseSpecies;
if (species.name === "Iron Leaves" || species.name === "Walking Wake") {
if (["Iron Leaves", "Walking Wake"].includes(donorSpecies.name) ||
["Iron Leaves", "Walking Wake"].includes(species.name)) {
set.hpType = "Dark";
}
const problems = this.validateSet(set, teamHas);
Expand Down Expand Up @@ -1041,9 +1042,9 @@ export const Formats: FormatList = [
'Arceus', 'Azumarill', 'Basculegion', 'Basculegion-F', 'Baxcalibur', 'Calyrex-Ice', 'Calyrex-Shadow', 'Chi-Yu', 'Chien-Pao', 'Cloyster',
'Darkrai', 'Dialga', 'Dialga-Origin', 'Dragapult', 'Dragonite', 'Enamorus-Base', 'Eternatus', 'Flutter Mane', 'Garchomp', 'Giratina',
'Giratina-Origin', 'Groudon', 'Iron Bundle', 'Komala', 'Koraidon', 'Kyogre', 'Landorus-Base', 'Lilligant-Hisui', 'Magearna', 'Mewtwo',
'Miraidon', 'Palkia', 'Palkia-Origin', 'Rayquaza', 'Regieleki', 'Shaymin-Sky', 'Spectrier', 'Ursaluna-Base', 'Urshifu-Base', 'Walking Wake',
'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned', 'Zoroark-Hisui', 'Arena Trap', 'Moody', 'Shadow Tag', 'Damp Rock', 'King\'s Rock',
'Razor Fang', 'Baton Pass', 'Shed Tail',
'Miraidon', 'Palkia', 'Palkia-Origin', 'Rayquaza', 'Regieleki', 'Shaymin-Sky', 'Spectrier', 'Ursaluna', 'Ursaluna-Bloodmoon', 'Urshifu-Base',
'Walking Wake', 'Zacian', 'Zacian-Crowned', 'Zamazenta', 'Zamazenta-Crowned', 'Zoroark-Hisui', 'Arena Trap', 'Moody', 'Shadow Tag',
'Damp Rock', 'King\'s Rock', 'Razor Fang', 'Baton Pass', 'Shed Tail',
],
restricted: [
'Acupressure', 'Astral Barrage', 'Belly Drum', 'Clangorous Soul', 'Dire Claw', 'Extreme Speed', 'Fillet Away', 'Gigaton Hammer', 'Last Respects',
Expand Down
2 changes: 1 addition & 1 deletion data/formats-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ export const FormatsData: {[k: string]: SpeciesFormatsData} = {
tier: "LC",
},
magneton: {
tier: "PU",
tier: "PUBL",
doublesTier: "NFE",
natDexTier: "NFE",
},
Expand Down
7 changes: 7 additions & 0 deletions data/mods/gen3/random-teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import {Utils} from '../../../lib';
import {PRNG, PRNGSeed} from '../../../sim/prng';
import type {MoveCounter, OldRandomBattleSpecies} from '../gen8/random-teams';

// Moves that shouldn't be the only STAB moves:
const NO_STAB = [
'bounce', 'eruption', 'explosion', 'fakeout', 'icywind', 'machpunch',
'pursuit', 'quickattack', 'reversal', 'selfdestruct', 'waterspout',
];

export class RandomGen3Teams extends RandomGen4Teams {
battleHasDitto: boolean;
battleHasWobbuffet: boolean;
Expand All @@ -11,6 +17,7 @@ export class RandomGen3Teams extends RandomGen4Teams {

constructor(format: string | Format, prng: PRNG | PRNGSeed | null) {
super(format, prng);
this.noStab = NO_STAB;
this.battleHasDitto = false;
this.battleHasWobbuffet = false;
this.moveEnforcementCheckers = {
Expand Down
Loading

0 comments on commit bd17e30

Please sign in to comment.