STABmons: Prevent Max moves

This commit is contained in:
The Immortal
2019-12-02 04:14:12 +04:00
parent fe279753bb
commit 4b5c65ac98

View File

@@ -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);