mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
Griseous Orb cannot be held by any Pokemon other than Giratina in Generation 4 games (to preserve reverse compatability with Pokemon Diamond and Pearl)
16 lines
400 B
JavaScript
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.'];
|
|
}
|
|
}
|
|
}
|
|
};
|
|
|