From f1f61867d6b6815fed15e414d3cd0be2bc65cbc1 Mon Sep 17 00:00:00 2001 From: HiZo <96159984+HisuianZoroark@users.noreply.github.com> Date: Sun, 17 May 2026 14:50:04 -0400 Subject: [PATCH] Add client support for type changing OMPL tiers (#12038) * Add client support for Camomons * fuck it do the other OMPL tier this is relevant --- config/formats.ts | 2 +- data/mods/mixandmega/scripts.ts | 2 +- data/rulesets.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/formats.ts b/config/formats.ts index 7b7ac9195e..c81d0fb116 100644 --- a/config/formats.ts +++ b/config/formats.ts @@ -1059,7 +1059,7 @@ export const Formats: import('../sim/dex-formats').FormatList = [ this.add('-start', pokemon, originalSpecies.requiredItems?.[0] || originalSpecies.requiredItem || originalSpecies.requiredMove, '[silent]'); const oSpecies = this.dex.species.get(pokemon.m.originalSpecies); if (oSpecies.types.join('/') !== pokemon.species.types.join('/')) { - this.add('-start', pokemon, 'typechange', pokemon.species.types.join('/'), '[silent]'); + this.add('-start', pokemon, 'typechange', pokemon.species.types.join('/'), '[silent]', '[from] format: Mix and Mega'); } } }, diff --git a/data/mods/mixandmega/scripts.ts b/data/mods/mixandmega/scripts.ts index 8c59398f4e..dacfe64932 100644 --- a/data/mods/mixandmega/scripts.ts +++ b/data/mods/mixandmega/scripts.ts @@ -409,7 +409,7 @@ export const Scripts: ModdedBattleScriptsData = { pokemon.formeChange(species, pokemon.getItem(), true); this.battle.add('-start', pokemon, oMegaSpecies.requiredItem, '[silent]'); if (oSpecies.types.join('/') !== pokemon.species.types.join('/')) { - this.battle.add('-start', pokemon, 'typechange', pokemon.species.types.join('/'), '[silent]'); + this.battle.add('-start', pokemon, 'typechange', pokemon.species.types.join('/'), '[silent]', '[from] format: Mix and Mega'); } // } diff --git a/data/rulesets.ts b/data/rulesets.ts index 22916b6a75..7fe0954628 100644 --- a/data/rulesets.ts +++ b/data/rulesets.ts @@ -1789,10 +1789,10 @@ export const Rulesets: import('../sim/dex-formats').FormatDataTable = { return { ...species, types }; }, onSwitchIn(pokemon) { - this.add('-start', pokemon, 'typechange', (pokemon.illusion || pokemon).getTypes(true).join('/'), '[silent]'); + this.add('-start', pokemon, 'typechange', (pokemon.illusion || pokemon).getTypes(true).join('/'), '[silent]', '[from] format: Camomons Mod'); }, onAfterMega(pokemon) { - this.add('-start', pokemon, 'typechange', (pokemon.illusion || pokemon).getTypes(true).join('/'), '[silent]'); + this.add('-start', pokemon, 'typechange', (pokemon.illusion || pokemon).getTypes(true).join('/'), '[silent]', '[from] format: Camomons Mod'); }, }, allowtradeback: {