Even more abilities
This commit is contained in:
18
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/Gooey.cs
Normal file
18
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/Gooey.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user