namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;

/// <summary>
/// Shell Armor is an ability that prevents the Pokémon from receiving critical hits.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Shell_Armor_(Ability)">Bulbapedia - Shell Armor</see>
/// </summary>
[Script(ScriptCategory.Ability, "shell_armor")]
public class ShellArmor : Script, IScriptBlockIncomingCriticalHit
{
    /// <inheritdoc />
    public void BlockIncomingCriticalHit(IExecutingMove move, IPokemon target, byte hit, ref bool block)
    {
        block = true;
    }
}