allow insta-hatch eggs

pelago can drain to 0, will hatch immediately on current gen
im sure there's some ways to force-walk to trip to 0 on prior gens, but
this is such a minor check and has no impact for online play

Thanks @Kirzi !
This commit is contained in:
Kurt 2017-05-27 22:50:10 -07:00
parent 74dbeb5cf6
commit 61eaa7774d

View file

@ -1981,7 +1981,7 @@ namespace PKHeX.Core
var HatchCycles = (EncounterMatch as EncounterStatic)?.EggCycles;
if (HatchCycles == 0 || HatchCycles == null)
HatchCycles = pkm.PersonalInfo.HatchCycles;
if (pkm.CurrentFriendship > HatchCycles || pkm.CurrentFriendship == 0)
if (pkm.CurrentFriendship > HatchCycles)
{ AddLine(Severity.Invalid, V374, CheckIdentifier.Misc); }
}