mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 09:19:20 -05:00
Apply OT mismatch deferral to gen2
Check the OT length for the deferral other encounters are more permissive than trades, hence why we defer unless we know for certain. Same OTs are possible, except for the too-long ones! Closes #2338 , thanks @WEERSOQUEER !
This commit is contained in:
@@ -147,7 +147,8 @@ private static IEnumerable<IEncounterable> GenerateRawEncounters12(PKM pkm, Game
|
||||
var deferred = new List<IEncounterable>();
|
||||
foreach (var t in GetValidEncounterTrades(pkm, vs, game))
|
||||
{
|
||||
if (pkm.Format >= 7 && (t.Generation == 2 || t.GetOT(pkm.Language) != pkm.OT_Name)) // ot length collision
|
||||
// some OTs are longer than the keyboard entry; don't defer these
|
||||
if (pkm.Format >= 7 && pkm.OT_Name.Length <= (pkm.Japanese || pkm.Korean ? 5 : 7))
|
||||
{
|
||||
deferred.Add(t);
|
||||
continue;
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user