'use strict'; /**@type {{[k: string]: ModdedAbilityData}} */ let BattleAbilities = { "innerfocus": { inherit: true, rating: 1, }, "intimidate": { inherit: true, desc: "On switch-in, this Pokemon lowers the Attack of adjacent opposing Pokemon by 1 stage. Pokemon behind a substitute are immune.", onStart(pokemon) { let activated = false; for (const target of pokemon.side.foe.active) { if (!target || !this.isAdjacent(target, pokemon)) continue; if (!activated) { this.add('-ability', pokemon, 'Intimidate', 'boost'); activated = true; } if (target.volatiles['substitute']) { this.add('-immune', target); } else { this.boost({atk: -1}, target, pokemon, null, true); } } }, }, }; exports.BattleAbilities = BattleAbilities;