mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-27 10:59:16 -05:00
25 lines
578 B
JavaScript
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;
|
|
}
|
|
},
|
|
},
|
|
};
|