mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Add client support for type changing OMPL tiers (#12038)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
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:
parent
b422fd3682
commit
f1f61867d6
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
// }
|
||||
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user