Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Commit

Permalink
Fix timesEvolves to actually count evolutions (it was counting 0
Browse files Browse the repository at this point in the history
regardless before)
  • Loading branch information
Dabomstew committed Jun 7, 2015
1 parent c13f439 commit b2693b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2759,8 +2759,8 @@ private int innerTimesEvolves(List<Evolution> evos, Pokemon currPoke,
}
}
if (valid) {
currEvos = Math.max(currEvos, this.innerTimesEvolves(evos,
e.to, seenPokes, seenPokesIndex));
currEvos = Math.max(currEvos, 1 + this.innerTimesEvolves(
evos, e.to, seenPokes, seenPokesIndex));
}
}
}
Expand Down

0 comments on commit b2693b2

Please sign in to comment.