From ca47d43c1f610477add408a9d493a085cf53dc11 Mon Sep 17 00:00:00 2001 From: Pikachuun Date: Tue, 9 Dec 2014 16:16:29 -0500 Subject: [PATCH] Add -ate Clause -ate abilities are only limited to 1 per team, total (so no Aerilate + Pixilate or Double Aerilate). --- config/formats.js | 2 +- data/rulesets.js | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/config/formats.js b/config/formats.js index b7425eaab1..d37ecbdf4c 100644 --- a/config/formats.js +++ b/config/formats.js @@ -603,7 +603,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 () {