using PkmnLib.Plugin.Gen7.Scripts.Pokemon; namespace PkmnLib.Plugin.Gen7.Scripts.Moves; [Script(ScriptCategory.Move, "pursuit")] public class Pursuit : Script { /// public override void OnBeforeTurnStart(ITurnChoice choice) { if (choice is IMoveChoice moveChoice) choice.User.Volatile.Add(new PursuitEffect(moveChoice)); } /// public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit) => move.User.Volatile.Remove(); /// public override void OnAfterMove(IExecutingMove move) => move.User.Volatile.Remove(); }