namespace PkmnLib.Plugin.Gen7.Scripts.Status; [Script(ScriptCategory.Status, "paralyzed")] public class Paralyzed : Script, IScriptChangeSpeed, IScriptPreventMove { /// public void ChangeSpeed(ITurnChoice choice, ref uint speed) { speed = (uint)(speed * 0.5f); } /// public void PreventMove(IExecutingMove move, ref bool prevent) { if (move.Battle.Random.GetInt(0, 100) >= 25) return; prevent = true; move.Battle.EventHook.Invoke(new DialogEvent("paralysis_prevent_move", new Dictionary { { "pokemon", move.User }, })); } }