mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-03 05:37:09 -05:00
Handle EncounterTrade without moves specified
Similar to EncounterStatic handling Thanks @architdate for pointing this out
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user