Adds several new scripts

This commit is contained in:
2024-12-22 11:24:01 +01:00
parent 44cd2ee03e
commit 45439a20a4
5 changed files with 81 additions and 5 deletions

View File

@@ -0,0 +1,16 @@
using PkmnLib.Dynamic.Models;
using PkmnLib.Dynamic.ScriptHandling;
using PkmnLib.Dynamic.ScriptHandling.Registry;
using PkmnLib.Plugin.Gen7.Scripts.Pokemon;
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
[Script(ScriptCategory.Move, "flinch")]
public class Flinch : Script
{
/// <inheritdoc />
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
{
target.Volatile.Add(new FlinchEffect());
}
}