Adds several new scripts
This commit is contained in:
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Pokemon/FlinchEffect.cs
Normal file
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Pokemon/FlinchEffect.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using PkmnLib.Dynamic.Models;
|
||||
using PkmnLib.Dynamic.ScriptHandling;
|
||||
using PkmnLib.Dynamic.ScriptHandling.Registry;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "flinch_effect")]
|
||||
public class FlinchEffect : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void PreventMove(IExecutingMove move, ref bool prevent)
|
||||
{
|
||||
prevent = true;
|
||||
RemoveSelf();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user