Spaces:
Running
Running
export const Abilities: import('../../../sim/dex-abilities').ModdedAbilityDataTable = { | |
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; | |
} | |
}, | |
}, | |
}; | |