mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-25 07:22:09 -05:00
23 lines
610 B
TypeScript
23 lines
610 B
TypeScript
export const Abilities: {[k: string]: ModdedAbilityData} = {
|
|
unaware: {
|
|
inherit: true,
|
|
onAnyModifyBoost(boosts, pokemon) {
|
|
const unawareUser = this.effectState.target;
|
|
if (unawareUser === pokemon) return;
|
|
if (unawareUser === this.activePokemon && pokemon === this.activeTarget) {
|
|
boosts['def'] = 0;
|
|
boosts['spd'] = 0;
|
|
boosts['evasion'] = 0;
|
|
}
|
|
if (pokemon === this.activePokemon && unawareUser === this.activeTarget) {
|
|
boosts['atk'] = 0;
|
|
boosts['def'] = 0;
|
|
boosts['spa'] = 0;
|
|
boosts['spd'] = 0;
|
|
boosts['spe'] = 0;
|
|
boosts['accuracy'] = 0;
|
|
}
|
|
},
|
|
},
|
|
};
|