Skip to content

Commit

Permalink
Gens 1 & 2: On Tradeback, allow Egg moves from gen 2 with gen 1 moves
Browse files Browse the repository at this point in the history
  • Loading branch information
Joimer committed Jan 9, 2015
1 parent c726062 commit 3bd4c06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions team-validator.js
Expand Up @@ -677,6 +677,8 @@ Validator = (function () {
}
// chainbreeding with itself from earlier gen
if (!atLeastOne) sources.push(learned + template.id);
// Egg move tradeback for gens 1 and 2.
if (!noFutureGen) sourcesBefore = Math.max(sourcesBefore, parseInt(learned.charAt(0), 10));
} else if (learned.charAt(1) === 'S') {
// Event Pokémon:
// Available as long as the past gen can get the Pokémon and then trade it back.
Expand Down

0 comments on commit 3bd4c06

Please sign in to comment.