Skip to content

Commit ae5d697

Browse files
Regular-Pokemon-Trainers-LeagueKrisXVDaWoblefetKingNeodudeSeerd
authored
Feature/merge main (#3)
* Move Archaludon to Ubers * Move Garganacl to UUBL * Fix Poltchageist-Artisan's learnset * Separate Ally Switch from standard protection counters (smogon#10171) * Fix help text in approvallog (smogon#10179) * Shared Power: Update bans (smogon#10182) https://www.smogon.com/forums/threads/shared-power.3711011/page-16#post-9993373 * National Dex Doubles: Ban Urshifu-Rapid-Strike (smogon#10181) * National Dex Doubles: Ban Urshifu-Rapid-Strike * Update config/formats.ts --------- Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Move Iron Jugulis to RUBL * Ubers UU: Ban Arceus-Fire * National Dex: Move Cinderace to UUBL * DPP: Fix Snow Cloak ban in lower tiers * Fix Gen 5 tiers * Tera Donation: Limit to generations with Terastallization (smogon#10183) * Fix some more Terapagos mechanics (smogon#10184) * Fix some more Terapagos mechanics * Update data/moves.ts --------- Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Fix Tera Stellar interaction with multihit moves (smogon#10185) * UU: Ban Galarian Moltres https://www.smogon.com/forums/posts/9998006/ * Gen 2 UU: Unban Aerodactyl and Muk https://www.smogon.com/forums/posts/9998491/ * National Dex: Re-ban Roaring Moon * PU: Ban Tauros-Paldea-Blaze and Tornadus * Frantic Fusions: Ban Gouging Fire * Package.json: Lock eslint version eslint is removing their style linting, so this is a stopgap measure to prevent that. * commit package-lock for last commit * Random Battles: February 2024 balance patch (smogon#10188) * Add March 2024 spotlight ladders and tier shifts * Randomized format updates (smogon#10189) * Randomized format updates * Give CM Cobalion some defensive teras * fix alphabetical order * Gen 5: prevent rocky helmet cm slowbro * Gen 3 synchronize xatu * Random Spotlight: Adjust Broken Cup and add Doubles Broken Cup (smogon#10190) * Randomized Format Spotlight: Adjust Broken Cup and add Doubles Broken Cup * remove poison puppeteer * Update config/formats.ts --------- Co-authored-by: livid washed <115855253+livid-washed@users.noreply.github.com> * Fix typo * Fix typo * Formats: NatDex AAA should be singles * Give Foresighters a ladder * Foresighters: Add fail hint * Update aliases * NU: Unban NUBL https://www.smogon.com/forums/posts/10009564/ * NatDex AAA: Update bans (smogon#10193) https://www.smogon.com/forums/threads/national-dex-almost-any-ability-spotlight-ladder-of-the-month.3726510/page-2#post-10010897 * National Dex UU: Unban Battle Bond (smogon#10191) Battle Bond was banned as a temporary fix to an issue where Battle Bond Greninja was able to circumvent Greninja's ban with no way to fix it other than this. Greninja is unbanned so this point is now moot. * Godly Gift: Update bans * FFA: Update bans * Update Pokémon colors to match Pokemon HOME (smogon#10195) * Doubles LC: Ban Duraludon (smogon#10196) * Foresighters: Update bans (smogon#10199) * Foresighters: Update bans https://www.smogon.com/forums/threads/foresighters-om-of-the-month-for-march.3735969/page-3#post-10018009 * Update formats.ts --------- Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * SSB: Remove Alpha * ZU: Ban Braviary and Dodrio * NU: Ban Lilligant-Hisui, Regidrago, and Suicune * NDRU - Ban Mega Altaria and Mega Gallade (smogon#10202) NDRU Banlist found here - https://www.smogon.com/forums/threads/national-dex-ru-metagame-discussion.3713801/ * Doubles OU: Ban Deoxys-Attack * Doubles UU: Ban Roaring Moon * Remove NFE ladder * Add missing Flutter Mane event Allows Flutter Mane to learn Moonblast at level 75. * Fix Upper Hand failure timing (smogon#10207) * Allow redirects from private battle ids to public ids (smogon#10204) * Fix paralysis Speed modifier timing * Fix Wonder Guard Fire Fang hint info leak * Protosynthesis should ignore weather supressing abilities * Fix weather suppression abilities suppressing weather while ending Fixes a few issues with protosynthesis as well. * Carry over client change * Wifi: Log all joining userids to roomstaff when giveaways end Requested. * Offline PMs: Don't refresh the seen date on PMs on every login Sigh. We were setting the seen date to last login every time they logged in, so nothing ever expired. * Offline PMs: Deprecate function calls in favor of prepared statements These functions kept crashing (weren't found) and didn't need to be functions anyway. * NU: Ban Armarouge, Gyarados, and Necrozma (smogon#10209) https://www.smogon.com/forums/threads/np-stage-10-i-must-apologise-post-41-armarouge-gyarados-necrozma-banned.3737924/page-2#post-10030763 * Fix Rattled boosting Speed when Intimidate fails (smogon#10211) * Randomized format set updates (smogon#10206) * Randomized format set updates * forgot * eq croz * remove sucker wuggy * Remove unnecessary PTypes * remove z crystals from BC * Fix Gen 5 Phione * Fuse Gen 5 Conkeldurr sets * curse pincurchin --------- Co-authored-by: Kelvin Liu <115855253+livid-washed@users.noreply.github.com> * Gen IV: Fix Knock Off message * Monotype: Ban Baxcalibur https://www.smogon.com/forums/posts/10031755/ * PU: Ban Salazzle https://www.smogon.com/forums/posts/10034399/ * Fix Cloud Nine/Air Lock not re-activiating if the pokemon swaps back in I plan to write a more comprehensive patch for abilities ending later, but for now this fixes the abilities. * Offline messages: Ensure proper clearing of old messages on startup * Fix uploading public replays on side servers (smogon#10215) * Update LICENSE year (smogon#10216) * RU: Ban Zarude (smogon#10214) https://www.smogon.com/forums/threads/sv-ru-suspect-process-round-6-voting-zarude.3739156/page-2#post-10035395 * VaporeMons: Nerf Gouging Fire (smogon#10205) * Nerf Gouging Fire * Update scripts.ts * Inheritance: Ban Drought, unban Torkoal (smogon#10217) * Update formats.ts * trying to fix indentation issue * Ladder: Move tighter search restrictions to latest gen (smogon#10210) * National Dex Ubers: Ban Xerneas (smogon#10218) https://www.smogon.com/forums/threads/national-dex-ubers-3-xerneas.3739283/post-10037450 * Allow BestOfGames to be private (smogon#10208) * Correct Flutter Mane event * Calc command: Get gen from room format (smogon#10203) * ZU: Ban Farigiraf and Oricorio * Let's Go: Implement itemless megas (smogon#10212) * Let's Go: Fix species validation check for Megas (smogon#10223) * Fix species validation check for Let's Go Megas * pass battle over using call * UU: Ban Garchomp * Delete Gen 7 Random Doubles Battle (smogon#10224) * Delete Gen 7 Random Doubles Battle * also the tests * Update server/chat-plugins/randombattles/index.ts * Update multi-random-runner.ts --------- Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * National Dex UU: Ban Latios and Thundurus-Therian (smogon#10227) https://www.smogon.com/forums/threads/sv-national-dex-uu-stage-6-4-thunderstruck.3739955/ * RU: Ban Hoopa-Unbound (smogon#10226) https://www.smogon.com/forums/threads/sv-ru-metagame-discussion-hoopa-unbound-banned-see-post-188.3733547/page-8#post-10048925 * Info: Use Smogon Dex resources for /formathelp * Improve /formathelp * Random Battles: March 2024 balance patch (smogon#10230) * Godly Gift: Update bans * BDSP: Add UU tier shifts (smogon#10233) https://www.smogon.com/forums/threads/bdsp-uu-tier-shifts-post-107.3694307/page-5#post-10053514 * Remove old command from /help (smogon#10232) * Randomized format set updates (smogon#10234) * Randomized format set updates * Fix accidental level changes * remove unnecessary ptypes * add incompatibility * update for setdev workshop results * remove tera fairy * randdubs meowstic-f --------- Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com> * Revamp [Gen 2] Random Battle (smogon#10220) * Gen 2 revamp * Fix test * RIP the meme * victreebel * vic again * VGC/BSS: Add Regulation G (smogon#10235) * Update Battle Factory description (smogon#10231) * Add New Pet Mod of the Season & Leader's Choice (April-July) (smogon#10229) * PMOTS April 2024 * Update formats.ts * Update formats-data.ts * Update items.ts * Update moves.ts * Update rulesets.ts * Create rulesets.ts * Update scripts.ts * Update formats-data.ts * Update formats-data.ts * Update rulesets.ts * Update formats.ts * Update formats.ts * Update formats.ts * Update rulesets.ts * Update moves.ts * Update formats-data.ts * Update formats.ts * Update moves.ts * Update formats-data.ts * Update pokedex.ts * Update formats-data.ts * DLC2 Learnsets * Update formats-data.ts * Update formats-data.ts * Update pokedex.ts * Update pokedex.ts * Update pokedex.ts * Delete data/mods/donotuse/rulesets.ts * Update formats.ts * Delete data/mods/donotuse/formats-data.ts * Delete data/mods/donotuse/scripts.ts * Delete data/mods/moderngen2/moves.ts * Delete data/mods/moderngen2/items.ts * Update scripts.ts * Update scripts.ts * Update formats-data.ts * Update scripts.ts * Update rulesets.ts --------- Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Add Random Meta of the Decade * AFD bans * Add April 2024 rotational metagames * Fix build * Partners in Crime: Ban Deoxys-Attack and Dragon Cheer (smogon#10236) * Partners in Crime: Ban Deoxys-Attack and Dragon Cheer * Update formats.ts --------- Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Actually fix build * Fix aliases * Support managing media requests from /viewapprovals (smogon#10225) * Add a plugin for ladder seasons (smogon#10222) * Add a plugin for ladder seasons * Force battles public during the last 3 days of every month * Fix bug in generating season schedules * Another oops * Testing * Fix up a few things * Fix tests * Ensure season generation functions properly This took way too long. Yes, it's super complicated, I know. It ended up being a way more finicky problem than you'd expect. * Increment seasons overall instead of by year * National Dex STABmons: Update bans * Add more aliases * Add April 2024 tier shifts * Seasons: Fix bug in creating badgeholder table * Seasons: Render badge URLs correctly in page * Seasons: Fix bug in getBadges call * Seasons: Use onBattleStart instead of onBattleJoin for badges * Fix crash in /om * Revert "AFD bans" This reverts commit 68f5029. * Teams: Add debugger for obscure crash Sometimes the team can't be unpacked here and becomes null, which it should never be happening since we unpack/repack when uploading. * RBY ZU: Ban Arbok * Seasons: Ensure schedules are properly set It was using the season to find the schedule index, rather than the period (time of year) * Seasons: Fix typo findPeriod returns 1/2/3/4 - gotta account for indexing * Add additional Encore tests * Inheritance: Ban Ursaluna https://www.smogon.com/forums/posts/10004812/ * Hotfix Shed Skin Arbok in Gen 4-7 Random Battle (smogon#10239) * Add `fullformat` CRQ (smogon#10221) * ZU: Move some NFEs back to NFE * PU: Unban Drought * Seasons: Fix typo * Ubers UU: Update bans (smogon#10240) https://www.smogon.com/forums/threads/shaymin-sky-necrozma-dawn-wings-and-arceus-ghost-have-all-been-unbanned.3740378/ * Add Ultra Beast Pokemon tag + fix tag mistakes (smogon#10241) * Do Not Use and Modern Gen 2: Fix Validation (smogon#10238) * Update formats.ts * Create moves.ts * Delete data/mods/moderngen2/moves.ts * Create items.ts * Create moves.ts * Update scripts.ts * Delete data/mods/moderngen2/items.ts * Delete data/mods/moderngen2/moves.ts * Update scripts.ts * Update scripts.ts * Create moves.ts * Create items.ts * Update scripts.ts * Update config/formats.ts * Update config/formats.ts --------- Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Pokébilities: Ban Magearna, Basculegion-F (smogon#10242) * Pokébilities: Ban Magearna, Basculegion-F * Update config/formats.ts --------- Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Teams: Debug crash with invalid teams in database * Inheritance: Fix bans * PU: Update bans * ZU: Update bans * Fix more SV item legality * UU: Ban Iron Boulder * Full Potential: Ban Speed Boost (smogon#10245) So this was banned last year and no one noticed until now... https://www.smogon.com/forums/threads/full-potential.3711127/page-3#post-9778935 * Limit sigfigs in /math (smogon#10244) https://www.smogon.com/forums/threads/floating-point-imprecision-in-math.3740559/ The limit can be lowered if it looks better, but I selected 15 because it's the highest amount that generally doesn't allow for precision errors to slip through. * Modern Gen 2: Fix Move Validation + Do Not Use: Unban Capsakid & Snorunt (smogon#10243) * Update scripts.ts * Update scripts.ts * Update scripts.ts * Update scripts.ts * Update formats.ts * Update data/mods/moderngen2/scripts.ts * Update data/mods/moderngen2/scripts.ts --------- Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> * Merged master in and had seasons plugin default to normal showdown --------- Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> Co-authored-by: Leonard Craft III <leonardcraft64@gmail.com> Co-authored-by: KingNeodude <109841009+KingNeodude@users.noreply.github.com> Co-authored-by: Kaen <66154904+Seerd@users.noreply.github.com> Co-authored-by: Smudge <smudgerox@users.noreply.github.com> Co-authored-by: Hisuian Zoroark <96159984+HisuianZoroark@users.noreply.github.com> Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com> Co-authored-by: Marty <Marty-D@users.noreply.github.com> Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com> Co-authored-by: Christopher Monsanto <chris@monsan.to> Co-authored-by: adrivrie <adriaan.de.vries@hotmail.com> Co-authored-by: livid washed <115855253+livid-washed@users.noreply.github.com> Co-authored-by: ACakeWearingAHat <45981036+ACakeWearingAHat@users.noreply.github.com> Co-authored-by: Distrib <theodelhay@orange.fr> Co-authored-by: Runo <105902454+Runoisch@users.noreply.github.com> Co-authored-by: aQrator <72260207+aQrator@users.noreply.github.com> Co-authored-by: Andrew Werner <HoeenCoder@users.noreply.github.com> Co-authored-by: singiamtel <47090312+singiamtel@users.noreply.github.com> Co-authored-by: Yoshiblaze <53023564+Yoshiblaze@users.noreply.github.com> Co-authored-by: Isaiah <78443243+Thinkerino@users.noreply.github.com> Co-authored-by: tofa <79044321+im-tofa@users.noreply.github.com> Co-authored-by: Zachary Perlmutter <zrp200@gmail.com> Co-authored-by: shrianshChari <30420527+shrianshChari@users.noreply.github.com> Co-authored-by: TwiSteorra <160420881+TwiSteorra@users.noreply.github.com> Co-authored-by: ubersuu <165947992+ubersuu@users.noreply.github.com> Co-authored-by: kittenchilly <mario.pikmin.zelda@gmail.com> Co-authored-by: VineST <alek.malesevic@yahoo.com> Co-authored-by: dot-Comfey <84290266+dot-Comfey@users.noreply.github.com>
1 parent 5d40d0a commit ae5d697

File tree

102 files changed

+110362
-106716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+110362
-106716
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2011-2022 Guangcong Luo and other contributors http://pokemonshowdown.com/
3+
Copyright (c) 2011-2024 Guangcong Luo and other contributors http://pokemonshowdown.com/
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

config/formats.ts

+755-541
Large diffs are not rendered by default.

data/abilities.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,15 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
9393
},
9494
onStart(pokemon) {
9595
// Air Lock does not activate when Skill Swapped or when Neutralizing Gas leaves the field
96+
pokemon.abilityState.ending = false; // Clear the ending flag
9697
if (this.effectState.switchingIn) {
9798
this.add('-ability', pokemon, 'Air Lock');
9899
this.effectState.switchingIn = false;
99100
}
100101
this.eachEvent('WeatherChange', this.effect);
101102
},
102103
onEnd(pokemon) {
104+
pokemon.abilityState.ending = true;
103105
this.eachEvent('WeatherChange', this.effect);
104106
},
105107
suppressWeather: true,
@@ -537,13 +539,15 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
537539
},
538540
onStart(pokemon) {
539541
// Cloud Nine does not activate when Skill Swapped or when Neutralizing Gas leaves the field
542+
pokemon.abilityState.ending = false; // Clear the ending flag
540543
if (this.effectState.switchingIn) {
541544
this.add('-ability', pokemon, 'Cloud Nine');
542545
this.effectState.switchingIn = false;
543546
}
544547
this.eachEvent('WeatherChange', this.effect);
545548
},
546549
onEnd(pokemon) {
550+
pokemon.abilityState.ending = true;
547551
this.eachEvent('WeatherChange', this.effect);
548552
},
549553
suppressWeather: true,
@@ -3423,7 +3427,8 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
34233427
// Protosynthesis is not affected by Utility Umbrella
34243428
if (this.field.isWeather('sunnyday')) {
34253429
pokemon.addVolatile('protosynthesis');
3426-
} else if (!pokemon.volatiles['protosynthesis']?.fromBooster) {
3430+
} else if (!pokemon.volatiles['protosynthesis']?.fromBooster && this.field.weather !== 'sunnyday') {
3431+
// Protosynthesis will not deactivite if Sun is suppressed, hence the direct ID check (isWeather respects supression)
34273432
pokemon.removeVolatile('protosynthesis');
34283433
}
34293434
},
@@ -3678,7 +3683,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
36783683
}
36793684
},
36803685
onAfterBoost(boost, target, source, effect) {
3681-
if (effect?.name === 'Intimidate') {
3686+
if (effect?.name === 'Intimidate' && boost.atk) {
36823687
this.boost({spe: 1});
36833688
}
36843689
},
@@ -4849,7 +4854,7 @@ export const Abilities: {[abilityid: string]: AbilityData} = {
48494854
},
48504855
terashell: {
48514856
onEffectiveness(typeMod, target, type, move) {
4852-
if (!target || target.baseSpecies.name !== 'Terapagos-Terastal') return;
4857+
if (!target || target.species.name !== 'Terapagos-Terastal') return;
48534858
if (this.effectState.resisted) return -1; // all hits of multi-hit move should be not very effective
48544859
if (move.category === 'Status') return;
48554860
if (!target.runImmunity(move.type)) return; // immunity has priority

data/aliases.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ export const Aliases: {[alias: string]: string} = {
8585
gen6ag: "[Gen 6] Anything Goes",
8686
crossevo: "[Gen 9] Cross Evolution",
8787
mayhem: "[Gen 9] Random Battle Mayhem",
88-
omotm: "[Gen 9] Tier Shift",
89-
lcotm: "[Gen 9] Sketchmons",
88+
omotm: "[Gen 9] Pokebilities",
89+
lcotm: "[Gen 9] The Loser's Game",
90+
rmotd: "[Gen 9] Meow Cup 2: Electric Doggaroo",
91+
rmotdffa: "[Gen 9] Meow Cup 2 FFA",
92+
meowcup: "[Gen 9] Meow Cup 2: Electric Doggaroo",
93+
meowcupffa: "[Gen 9] Meow Cup 2 FFA",
9094

9195
// mega evos
9296
fabio: "Ampharos-Mega",

data/conditions.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const Conditions: {[k: string]: ConditionData} = {
2727
this.add('-status', target, 'par');
2828
}
2929
},
30+
onModifySpePriority: -101,
3031
onModifySpe(spe, pokemon) {
3132
// Paralysis occurs after all other Speed modifiers, so evaluate all modifiers up to this point first
3233
spe = this.finalModify(spe);

0 commit comments

Comments
 (0)