using PkmnLib.Static.Moves; namespace PkmnLib.Plugin.Gen7.Scripts.Side; public class MatBlockEffect : Script { /// public override void BlockIncomingHit(IExecutingMove executingMove, IPokemon target, byte hitIndex, ref bool block) { if (executingMove.UseMove.Category != MoveCategory.Status) block = true; } /// public override void OnEndTurn(IScriptSource owner, IBattle battle) { RemoveSelf(); } }