mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-27 15:24:07 -05:00
Fix gb encounter move comparison
don't calc NoMoveReminder for non-gen2 formats, also fix comparisons (gen1 || gen2&&noRemind) Closes #1707
This commit is contained in:
@@ -140,8 +140,8 @@ private static CheckMoveResult[] ParseMovesPre3DS(PKM pkm, int[] Moves, LegalInf
|
||||
int[] SpecialMoves = GetSpecialMoves(info.EncounterMatch);
|
||||
return ParseMovesIsEggPreRelearn(pkm, Moves, SpecialMoves, egg);
|
||||
}
|
||||
var NoMoveReminder = info.EncounterMatch is IGeneration g && (g.Generation == 1 || g.Generation == 2) && !Legal.AllowGen2MoveReminder(pkm);
|
||||
if (info.Generation <= 2 && NoMoveReminder)
|
||||
if (info.Generation <= 2 &&
|
||||
info.EncounterMatch is IGeneration g && (g.Generation == 1 || g.Generation == 2 && !Legal.AllowGen2MoveReminder(pkm))) // fixed encounter moves without relearning
|
||||
return ParseMovesGenGB(pkm, Moves, info);
|
||||
if (info.EncounterMatch is EncounterEgg e)
|
||||
return ParseMovesWasEggPreRelearn(pkm, Moves, info, e);
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user