pokemon-showdown/mods/gen4/rulesets.js
2016-01-01 00:20:07 +01:00

21 lines
565 B
JavaScript

'use strict';
exports.BattleFormats = {
pokemon: {
inherit: true,
effectType: 'Banlist',
onValidateSet: function (set) {
let template = this.getTemplate(set.species);
let item = this.getItem(set.item);
if (item && item.id === 'griseousorb' && template.num !== 487) {
return ['Griseous Orb can only be held by Giratina in Generation 4.'];
}
if (template.num === 493 && set.evs) {
for (let stat in set.evs) {
if (set.evs[stat] > 100) return ["Arceus may not have more than 100 of any EVs in Generation 4."];
}
}
},
},
};