Don't check handler friendship if already invalid

prevents generating an unnecessary exception when gen == -1
This commit is contained in:
Kurt 2022-02-21 17:46:03 -08:00
parent 48742da4ae
commit 2870163fff

View file

@ -74,7 +74,9 @@ namespace PKHeX.Core
private void VerifyOTFriendship(LegalityAnalysis data, bool neverOT, int origin, PKM pkm)
{
if ((uint)origin <= 2)
if (origin < 0)
return;
if (origin <= 2)
{
// Verify the original friendship value since it cannot change from the value it was assigned in the original generation.
// Since some evolutions have different base friendship values, check all possible evolutions for a match.