mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Don't check handler friendship if already invalid
prevents generating an unnecessary exception when gen == -1
This commit is contained in:
parent
48742da4ae
commit
2870163fff
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue