pokemon-showdown/mods/gen4/rulesets.js
Kevin Lau 403f58bd7e Generation 4: Reject Griseous Orb on any non-Giratina Pokemon
Griseous Orb cannot be held by any Pokemon other than Giratina in
Generation 4 games (to preserve reverse compatability with Pokemon
Diamond and Pearl)
2015-03-24 22:11:24 -07:00

16 lines
400 B
JavaScript

exports.BattleFormats = {
standard: {
effectType: 'Banlist',
inherit: true,
validateSet: function (set) {
// limit one of each move in Standard
var template = this.getTemplate(set.species);
var 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.'];
}
}
}
};