namespace PkmnLib.Plugin.Gen7.Scripts.Abilities; /// /// Infiltrator is an ability that allows the Pokémon's moves to ignore the opposing side's barriers and substitutes. /// /// Bulbapedia - Infiltrator /// [Script(ScriptCategory.Ability, "infiltrator")] public class Infiltrator : Script { /// public override void CustomTrigger(StringKey eventName, IDictionary? parameters) { if ((eventName != CustomTriggers.BypassProtection && eventName != CustomTriggers.BypassSubstitute) || parameters is null) return; parameters["bypass"] = true; } }