namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;

/// <summary>
/// Serene Grace is an ability that doubles the chance of additional effects occurring when attacking.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Serene_Grace_(Ability)">Bulbapedia - Serene Grace</see>
/// </summary>
[Script(ScriptCategory.Ability, "serene_grace")]
public class SereneGrace : Script, IScriptChangeEffectChance
{
    /// <inheritdoc />
    public void ChangeEffectChance(IExecutingMove move, IPokemon target, byte hit, ref float chance)
    {
        chance *= 2;
    }
}