namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;

/// <summary>
/// Sniper is an ability that increases the power of critical hits.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Sniper_(Ability)">Bulbapedia - Sniper</see>
/// </summary>
[Script(ScriptCategory.Ability, "sniper")]
public class Sniper : Script, IScriptChangeCriticalModifier
{
    /// <inheritdoc />
    public void ChangeCriticalModifier(IExecutingMove move, IPokemon target, byte hit, ref float modifier)
    {
        modifier *= 1.5f;
    }
}