Skip to content

Commit

Permalink
Added Arceus EV Restriction Clause.
Browse files Browse the repository at this point in the history
  • Loading branch information
cathyjf committed Oct 6, 2010
1 parent 80f8bdf commit 88c33bd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions resources/clauses.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,26 @@ makeClause({
}
});

makeClause({
name : "Arceus EV Restriction Clause",
description : "Arceus can have at most 100 EVs in each stat",
validateTeam : function(team) {
for (var i in team) {
var p = team[i];
if (p.species != "Arceus")
continue;
var ev = p.ev;
for (var j in ev) {
var v = ev[j];
if (v > 100) {
return false;
}
}
}
return true;
}
});

makeClause({
name : "Little Cup Clause",
description : "Rules for the Little Cup metagame",
Expand Down

0 comments on commit 88c33bd

Please sign in to comment.