mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-06 05:27:14 -05: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
|
|
@ -267,7 +267,7 @@ private static IEnumerable<EncounterTrade> GetTrades(PKM pk, IReadOnlyCollection
|
|||
continue;
|
||||
}
|
||||
var em = trade.Moves;
|
||||
if (!needs.Except(em).Any())
|
||||
if (em != null && !needs.Except(em).Any())
|
||||
yield return trade;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user