From 4b135902f3be2604596d95b93ca2bc1ecfeb45fc Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 7 Oct 2017 08:23:05 -0700 Subject: [PATCH] Allow EV yields for gen1/2 untrained abusing daycare https://projectpokemon.org/home/forums/topic/41788-pk2-gets-dinged-for-having-too-many-evs-at-starting-levelxp/ --- PKHeX.Core/Legality/Checks.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PKHeX.Core/Legality/Checks.cs b/PKHeX.Core/Legality/Checks.cs index ffb753346..607145fb7 100644 --- a/PKHeX.Core/Legality/Checks.cs +++ b/PKHeX.Core/Legality/Checks.cs @@ -417,13 +417,13 @@ private void VerifyEVs() } else if (pkm.Format < 5) { - var maxEV = pkm.Format <= 2 ? 25600 : 100; // Vitamin Max - // Cannot EV train above 100 without increasing EXP + // In Generations I and II, when a Pokémon is taken out of the Day Care, its experience will lower to the minimum value for its current level. + if (pkm.Format < 3) // can abuse daycare for EV training without EXP gain + return; + + const int maxEV = 100; // Vitamin Max if (PKX.GetEXP(EncounterMatch.LevelMin, pkm.Species) == pkm.EXP && evs.Any(ev => ev > maxEV)) AddLine(Severity.Invalid, string.Format(V418, maxEV), CheckIdentifier.EVs); - - if (pkm.Format < 3) - return; } // Only one of the following can be true: 0, 508, and x%6!=0