Bypass crustle flag

This commit is contained in:
Kurt 2020-10-31 11:43:17 -07:00
parent 4012977c3c
commit 15348d3fdd

View File

@ -61,7 +61,8 @@ private void VerifyShiny(LegalityAnalysis data)
break;
// Forced PID or generated without an encounter
if (s is EncounterStatic5 s5 && (s5.Roaming || s5.Shiny != Shiny.Random))
// Crustle has 0x80 for its StartWildBattle flag; dunno what it does, but sometimes it doesn't align with the expected PID xor.
if (s is EncounterStatic5 s5 && (s5.Roaming || s5.Shiny != Shiny.Random || s5.Species == (int)Species.Crustle))
break;
VerifyG5PID_IDCorrelation(data);
break;