pokemon-showdown/mods/fullpotential/abilities.js

25 lines
578 B
JavaScript

'use strict';
exports.BattleAbilities = {
"unaware": {
inherit: true,
onAnyModifyBoost: function (boosts, target) {
let source = this.effectData.target;
if (source === target) return;
if (source === this.activePokemon && target === this.activeTarget) {
boosts['def'] = 0;
boosts['spd'] = 0;
boosts['evasion'] = 0;
}
if (target === this.activePokemon && source === this.activeTarget) {
boosts['atk'] = 0;
boosts['def'] = 0;
boosts['spa'] = 0;
boosts['spd'] = 0;
boosts['spe'] = 0;
boosts['accuracy'] = 0;
}
},
},
};