Skip to content

Commit

Permalink
Don't show EVs warning for level 1 Pokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
TheImmortal committed Aug 12, 2020
1 parent 53dd591 commit d79ca8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/team-validator.ts
Expand Up @@ -897,7 +897,7 @@ export class TeamValidator {
for (const stat in set.evs) totalEV += set.evs[stat as 'hp'];

if (!this.format.debug) {
if ((allowEVs || allowAVs) && totalEV === 0) {
if (set.level > 1 && (allowEVs || allowAVs) && totalEV === 0) {
problems.push(`${name} has exactly 0 EVs - did you forget to EV it? (If this was intentional, add exactly 1 to one of your EVs, which won't change its stats but will tell us that it wasn't a mistake).`);
} else if (allowEVs && !capEVs && [508, 510].includes(totalEV)) {
problems.push(`${name} has exactly 510 EVs, but this format does not restrict you to 510 EVs: you can max out every EV (If this was intentional, add exactly 1 to one of your EVs, which won't change its stats but will tell us that it wasn't a mistake).`);
Expand Down

0 comments on commit d79ca8e

Please sign in to comment.