namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;

/// <summary>
/// Mold Breaker is an ability that allows moves to ignore the target's abilities.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Mold_Breaker_(Ability)">Bulbapedia - Mold Breaker</see>
/// </summary>
[Script(ScriptCategory.Ability, "mold_breaker")]
public class MoldBreaker : Script, IScriptOnBeforeAnyHookInvoked
{
    /// <inheritdoc />
    public void OnBeforeAnyHookInvoked(ref List<ScriptCategory>? suppressedCategories)
    {
        suppressedCategories ??= [];
        suppressedCategories.Add(ScriptCategory.Ability);
    }
}