namespace PkmnLib.Plugin.Gen7.Scripts.Abilities; /// /// Bulletproof is an ability that grants immunity to ball and bomb moves. /// The Pokémon is unaffected by all damage and effects from moves flagged as ballistics, such as Shadow Ball and Sludge Bomb. /// /// Bulbapedia - Bulletproof /// [Script(ScriptCategory.Ability, "bulletproof")] public class Bulletproof : Script, IScriptFailIncomingMove { /// public void FailIncomingMove(IExecutingMove move, IPokemon target, ref bool fail) { if (move.UseMove.HasFlag("ballistics")) fail = true; } }