Gen 4: Fix Griseous Orb Validation (#8568)

This commit is contained in:
Karthik
2021-12-15 20:50:00 -05:00
committed by GitHub
parent e08789002c
commit 2ecbf613e3

View File

@@ -524,6 +524,9 @@ export class TeamValidator {
problem = this.checkItem(set, item, setHas);
if (problem) problems.push(problem);
if (ruleTable.has('obtainablemisc')) {
if (dex.gen === 4 && item.id === 'griseousorb' && species.num !== 487) {
problems.push(`${set.name} cannot hold the Griseous Orb.`, `(In Gen 4, only Giratina could hold the Griseous Orb).`);
}
if (dex.gen <= 1) {
if (item.id) {
// no items allowed