From 4b5c65ac98cf0fec0022908f05da75640f4e4c47 Mon Sep 17 00:00:00 2001 From: The Immortal Date: Mon, 2 Dec 2019 04:14:12 +0400 Subject: [PATCH] STABmons: Prevent Max moves --- data/rulesets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rulesets.js b/data/rulesets.js index 9e2f524cee..99f8c93f1e 100644 --- a/data/rulesets.js +++ b/data/rulesets.js @@ -755,7 +755,7 @@ let BattleFormats = { desc: "Allows Pokémon to use any move that they or a previous evolution/out-of-battle forme share a type with", checkLearnset(move, template, setSources, set) { const restrictedMoves = this.format.restrictedMoves || []; - if (!move.isNonstandard && !restrictedMoves.includes(move.name)) { + if (!restrictedMoves.includes(move.name) && !move.isNonstandard && !move.id.startsWith('max')) { let dex = this.dex; let types = template.types; let baseTemplate = dex.getTemplate(template.baseSpecies);