Skip to content

Commit

Permalink
Implemented Griseous Orb
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Fernandez committed Oct 21, 2010
1 parent 474a1bd commit e30b979
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
16 changes: 16 additions & 0 deletions resources/clauses.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,22 @@ makeClause({
}
});

makeClause({
name: "Griseous Orb Limitation",
description: "Giratina-O must have Griseous Orb, and other pokemon " +
"can't use it",
validateTeam : function(team) {
for (var i in team) {
var p = team[i];
if ((p.species == "Giratina-o") && (p.itemName != "Griseous Orb"))
return false;
if ((p.species != "Giratina-o") && (p.itemName == "Griseous Orb"))
return false;
}
return true;
}
});

makeClause({
name : "Little Cup Clause",
description : "Rules for the Little Cup metagame",
Expand Down
14 changes: 14 additions & 0 deletions resources/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -1009,3 +1009,17 @@ makeItem({
return Type.GROUND;
},
});

makeItem({
name : "Griseous Orb",
informRemoveItem : function() {
// Griseous Orb is usable by any pokemon in Gen 5, but cannot be
// tricked on or off Giratina (of any form)
// TODO: Prevent Griseous Orb from being tricked onto Giratina
var subject = this.subject;
if (subject.species == "Giratina-o") {
return true;
}
return false;
}
});
3 changes: 3 additions & 0 deletions resources/metagames.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<clause>Classic Freeze Clause</clause>
<clause>Strict Damage Clause</clause>
<clause>Evasion Clause</clause>
<clause>Griseous Orb Limitation</clause>
</clauses>
<timer>
<pool>300</pool>
Expand All @@ -64,6 +65,7 @@
<clause>Classic Freeze Clause</clause>
<clause>Strict Damage Clause</clause>
<clause>Evasion Clause</clause>
<clause>Griseous Orb Limitation</clause>
</clauses>
<timer>
<pool>300</pool>
Expand Down Expand Up @@ -98,6 +100,7 @@
<clause>Item Clause</clause>
<clause>Soul Dew Clause</clause>
<clause>Strict Damage Clause</clause>
<clause>Griseous Orb Limitation</clause>
</clauses>
<timer>
<pool>300</pool>
Expand Down

0 comments on commit e30b979

Please sign in to comment.