From 2ecbf613e34a689d59f2f78100a7577a2e33a8de Mon Sep 17 00:00:00 2001 From: Karthik <32044378+Karthik99999@users.noreply.github.com> Date: Wed, 15 Dec 2021 20:50:00 -0500 Subject: [PATCH] Gen 4: Fix Griseous Orb Validation (#8568) --- sim/team-validator.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sim/team-validator.ts b/sim/team-validator.ts index be13082bfa..f05ae33779 100644 --- a/sim/team-validator.ts +++ b/sim/team-validator.ts @@ -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