namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;

/// <summary>
/// Victory Star is an ability that boosts the accuracy of the Pokémon and its allies.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Victory_Star_(Ability)">Bulbapedia - Victory Star</see>
/// </summary>
[Script(ScriptCategory.Ability, "victory_star")]
public class VictoryStar : Script, IScriptChangeAccuracy
{
    /// <inheritdoc />
    public void ChangeAccuracy(IExecutingMove executingMove, IPokemon target, byte hitIndex, ref int modifiedAccuracy)
    {
        modifiedAccuracy = modifiedAccuracy.MultiplyOrMax(1.1f);
    }
}