Adds several new scripts
This commit is contained in:
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Flinch.cs
Normal file
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Flinch.cs
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user