Skip to content

Commit

Permalink
Add level check for invalid encounters
Browse files Browse the repository at this point in the history
Extra hints :)
  • Loading branch information
kwsch committed Apr 12, 2016
1 parent e226221 commit 9f528e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Legality/Checks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private LegalityCheck verifyLevel()
int lvl = pk6.CurrentLevel;
if (lvl < pk6.Met_Level)
return new LegalityCheck(Severity.Invalid, "Current level is below met level.");
if (pk6.WasEgg && !Legal.getEvolutionValid(pk6))
if ((pk6.WasEgg || EncounterMatch == null) && !Legal.getEvolutionValid(pk6))
return new LegalityCheck(Severity.Invalid, "Level is below evolution requirements.");
if (lvl > pk6.Met_Level && lvl > 1 && lvl != 100 && pk6.EXP == PKX.getEXP(pk6.Stat_Level, pk6.Species))
return new LegalityCheck(Severity.Fishy, "Current experience matches level threshold.");
Expand Down

0 comments on commit 9f528e1

Please sign in to comment.