diff --git a/PKHeX/Legality/Checks.cs b/PKHeX/Legality/Checks.cs index 01e578ded..553715607 100644 --- a/PKHeX/Legality/Checks.cs +++ b/PKHeX/Legality/Checks.cs @@ -276,7 +276,7 @@ namespace PKHeX } private void verifyIVs() { - if (EncounterType == typeof (EncounterStatic) && (EncounterMatch as EncounterStatic)?.IV3 == true) + if ((EncounterMatch as EncounterStatic)?.IV3 == true) { if (pkm.IVs.Count(iv => iv == 31) < 3) { @@ -284,6 +284,14 @@ namespace PKHeX return; } } + if ((EncounterMatch as EncounterSlot[])?.All(slot => slot.Type == SlotType.FriendSafari) == true) + { + if (pkm.IVs.Count(iv => iv == 31) < 2) + { + AddLine(Severity.Invalid, "Friend Safari captures should have at least 2 IVs = 31.", CheckIdentifier.IVs); + return; + } + } if (pkm.IVs.Sum() == 0) AddLine(Severity.Fishy, "All IVs are zero.", CheckIdentifier.IVs); else if (pkm.IVs[0] < 30 && pkm.IVs.All(iv => pkm.IVs[0] == iv))