namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
///
/// Klutz is an ability that prevents the Pokémon from using its held item in battle.
///
/// Bulbapedia - Klutz
///
[Script(ScriptCategory.Ability, "klutz")]
public class Klutz : Script, IScriptOnBeforeAnyHookInvoked, IScriptPreventHeldItemConsume
{
///
public void OnBeforeAnyHookInvoked(ref List? suppressedCategories)
{
suppressedCategories ??= new List();
suppressedCategories.Add(ScriptCategory.ItemBattleTrigger);
}
///
public void PreventHeldItemConsume(IPokemon pokemon, IItem heldItem, ref bool prevented)
{
prevented = true;
}
}