Add client support for type changing OMPL tiers (#12038)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run

* Add client support for Camomons

* fuck it do the other OMPL tier this is relevant
This commit is contained in:
HiZo 2026-05-17 14:50:04 -04:00 committed by GitHub
parent b422fd3682
commit f1f61867d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -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');
}
}
},

View File

@ -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');
}
// }

View File

@ -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: {