mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
Handle EncounterTrade without moves specified
Similar to EncounterStatic handling Thanks @architdate for pointing this out
This commit is contained in:
parent
e216c38151
commit
1f8c72af5a
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ namespace PKHeX.Core
|
|||
continue;
|
||||
}
|
||||
var em = trade.Moves;
|
||||
if (!needs.Except(em).Any())
|
||||
if (em != null && !needs.Except(em).Any())
|
||||
yield return trade;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue