using System.Collections.Generic; using PkmnLib.Static.Utils; namespace PkmnLib.Plugin.Gen7.Scripts.Moves; [Script(ScriptCategory.Move, "grudge")] public class Grudge : Script { /// public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit) { move.User.Volatile.StackOrAdd("grudge", () => { move.User.Library.ScriptResolver.TryResolve(ScriptCategory.Pokemon, "grudge", new Dictionary(), out var script); return script; }); } }