return function(mod) mod.content.move_effects:register("TUTORIAL_BEAM_EFFECT", { kind = "secondary", run = function(ctx) if ctx.rng(0, 255) < 85 then ctx.changeStage(ctx.target, "defense", -1) end end, }) mod.content.moves:register("TUTORIAL_BEAM", { id = "TUTORIAL_BEAM", name = "TUTORIAL BEAM", type = "PSYCHIC_TYPE", category = "special", power = 80, accuracy = 90, pp = 10, effect = "TUTORIAL_BEAM_EFFECT", }) mod.content.pokemon:patch("ABRA", { learnset = { __append = { { level = 10, move = "TUTORIAL_BEAM" } } }, }) end