diff --git a/config/formats.js b/config/formats.js index 8166eb2066..d28bd62e98 100644 --- a/config/formats.js +++ b/config/formats.js @@ -574,7 +574,7 @@ exports.Formats = [ name: "Balanced Hackmons", section: "Other Metagames", - ruleset: ['Pokemon', 'Ability Clause', 'OHKO Clause', 'Evasion Moves Clause', 'Team Preview', 'HP Percentage Mod'], + ruleset: ['Pokemon', 'Ability Clause', '-ate Clause', 'OHKO Clause', 'Evasion Moves Clause', 'Team Preview', 'HP Percentage Mod'], banlist: ['Arena Trap', 'Huge Power', 'Parental Bond', 'Pure Power', 'Shadow Tag', 'Wonder Guard'] }, { diff --git a/data/rulesets.js b/data/rulesets.js index 89602d87bb..9a53776d9a 100644 --- a/data/rulesets.js +++ b/data/rulesets.js @@ -381,6 +381,22 @@ exports.BattleFormats = { } } }, + ateclause: { + effectType: 'Rule', + onStart: function () { + this.add('rule', '-ate Clause: Limit one of Aerilate/Refrigerate/Pixilate'); + }, + validateTeam: function (team, format) { + var ateAbility = false; + for (var i = 0; i < team.length; i++) { + var ability = toId(team[i].ability); + if (ability === 'refrigerate' || ability === 'pixilate' || ability === 'aerilate') { + if (ateAbility) return ["You have more than one of Aerilate/Refrigerate/Pixilate, which is banned by -ate Clause."]; + ateAbility = true; + } + } + } + }, ohkoclause: { effectType: 'Rule', onStart: function () {