G-Luke
Sugar, Spice and One For All
Oh, and speaking of easier codes, HEY @SNAQUAZA!!! Articuno I! !! Can one of you code this plz I'll give you a cookie
{
name: "Alphability",
desc: [
"Pokémon can use any ability that starts with the same letter as their species.",
"• <a href=\"http://www.smogon.com/forums/threads/alphability-oras-check-post-232.3505582/\"Alphability</a>"
],
section: "Other Metagames",
ruleset: ['Pokemon', 'Standard', 'Baton Pass Clause', 'Swagger Clause', 'Team Preview'],
banlist: ['Ignore Illegal Abilities',
'Aegislash', 'Arceus', 'Archeops', 'Darkrai', 'Deoxys', 'Deoxys-Attack', 'Dialga', 'Giratina', 'Giratina-Origin', 'Groudon',
'Ho-Oh', 'Hoopa-Unbound', 'Kyogre', 'Kyurem-White', 'Lugia', 'Mewtwo', 'Palkia', 'Rayquaza', 'Regigigas', 'Reshiram',
'Shedinja', 'Slaking', 'Xerneas', 'Yveltal', 'Zekrom',
'Blazikenite', 'Gengarite', 'Kangaskhanite', 'Lucarionite', 'Mawilite', 'Salamencite', 'Soul Dew',
],
onValidateSet: function (set) {
var bannedAbilities = {'Arena Trap': 1, 'Fur Coat': 1, 'Huge Power': 1, 'Parental Bond': 1, 'Pure Power': 1, 'Shadow Tag': 1, 'Simple': 1, 'Speed Boost': 1, 'Wonder Guard': 1};
if (set.ability in bannedAbilities) return ["The ability '" + set.ability + "' is banned."];
var letter = Tools.getString(set.species || set.name)[0];
if (Tools.getString(set.ability)[0] !== letter) return ["Pokémon must share the same first letter as their ability."];
if ((set.species || set.name) === 'Shaymin-Sky' && set.ability === 'Serene Grace') return ["The ability Serene Grace is banned on Shaymin-Sky."];
}
},
{
name: "Alphability",
desc: [
"Pokémon may use any ability that starts with the same letter as their species, barring the few that are banned.",
"• <a href=\"https://www.smogon.com/forums/threads/3505582/\">Alphability</a>",
],
section: "Other Metagames",
searchShow: false,
ruleset: ['OU'],
banlist: [
'Archeops', 'Regigigas', 'Shedinja', 'Slaking',
'Arena Trap', 'Fur Coat', 'Huge Power', 'Parental Bond',
'Pure Power', 'Shadow Tag', 'Simple', 'Speed Boost', 'Wonder Guard',
'Serene Grace + Shaymin-Sky',
],
validateSet: function (set, teamHas) {
if (!this.validateSet(set, teamHas).length) return [];
let template = this.tools.getTemplate(set.species);
template = Object.assign({}, template);
template.abilities = Object.keys(this.tools.data.Abilities).filter(id => id[0] == template.id[0]).map(id => this.tools.data.Abilities[id].name);
return this.validateSet(set, teamHas, template);
},
},
But they're the same event, so that's OK.So it might not be the best mon and I don't know whether it is legal due to E-Speed and Shift Gear being Event only moves.
At least on my implementation on rom.psim.us, the validator still says Defog and Play Rough are incompatible, but it doesn't complain about anything else.Also how do Egg and Event moves factor in this meta? For example could I use Aura Sphere Raikou with a Rash Nature and Regenerator (common in ABCAB personally I preferred Refrigerate E-Speed) and (edit forgot to finish the sentence) Defog and Play Rough on a Skuntank with Serene Grace