namespace PkmnLib.Plugin.Gen7.Scripts.Abilities; /// /// Keen Eye is an ability that prevents the Pokémon's accuracy from being lowered. /// /// Bulbapedia - Keen Eye /// [Script(ScriptCategory.Ability, "keen_eye")] public class KeenEye : Script { /// public override void PreventStatBoostChange(IPokemon target, Statistic stat, sbyte amount, bool selfInflicted, ref bool prevent) { if (stat == Statistic.Accuracy && amount < 0) prevent = true; } }