Even more abilities

This commit is contained in:
2025-06-09 14:23:51 +02:00
parent 97868ab4c6
commit 074f92bfc0
31 changed files with 319 additions and 51 deletions

View File

@@ -0,0 +1,18 @@
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
/// <summary>
/// Gooey is an ability that lowers the Speed of attackers making contact with the Pokémon.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Gooey_(Ability)">Bulbapedia - Gooey</see>
/// </summary>
[Script(ScriptCategory.Ability, "gooey")]
public class Gooey : Script
{
/// <inheritdoc />
public override void OnIncomingHit(IExecutingMove move, IPokemon target, byte hit)
{
if (!move.UseMove.HasFlag("contact"))
return;
move.User.ChangeStatBoost(Statistic.Speed, -1, false, false);
}
}