namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
///
/// Gooey is an ability that lowers the Speed of attackers making contact with the Pokémon.
///
/// Bulbapedia - Gooey
///
[Script(ScriptCategory.Ability, "gooey")]
public class Gooey : Script, IScriptOnIncomingHit
{
///
public void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
{
if (!move.GetHitData(target, hit).IsContact)
return;
move.User.ChangeStatBoost(Statistic.Speed, -1, false, false);
}
}