mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-01 05:07:01 -05:00
23 lines
700 B
TypeScript
23 lines
700 B
TypeScript
export const Items: {[k: string]: ModdedItemData} = {
|
|
adrenalineorb: {
|
|
inherit: true,
|
|
onAfterBoost(boost, target, source, effect) {
|
|
if (effect.id === 'intimidate' || effect.id === 'ability:intimidate') {
|
|
target.useItem();
|
|
}
|
|
},
|
|
},
|
|
protectivepads: {
|
|
inherit: true,
|
|
onSetAbility(ability, target, source, effect) {
|
|
if (target !== source && target === this.activePokemon && this.activeMove && this.activeMove.flags['contact']) {
|
|
if (effect && effect.effectType === 'Ability' && !effect.id.endsWith('wanderingspirit')) {
|
|
this.add('-activate', source, effect.fullname);
|
|
this.add('-activate', target, 'item: Protective Pads');
|
|
}
|
|
return false;
|
|
}
|
|
},
|
|
},
|
|
};
|