mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 12:36:44 -05:00
Whitelist trade5bw for pid check
PID is forced by the encounter Closes #4562
This commit is contained in:
@@ -79,8 +79,8 @@ private void VerifyShiny(LegalityAnalysis data)
|
||||
switch (enc)
|
||||
{
|
||||
// Forced PID or generated without an encounter
|
||||
case IGeneration { Generation: 5 } and IFixedGender { Gender: 0 or 1 } fg:
|
||||
if (enc is not PGF && !MonochromeRNG.IsValidForcedRandomGender(pk.EncryptionConstant, fg.Gender))
|
||||
case IGeneration { Generation: 5 } and not (EncounterTrade5BW or PGF) and IFixedGender { Gender: 0 or 1 } fg:
|
||||
if (!MonochromeRNG.IsValidForcedRandomGender(pk.EncryptionConstant, fg.Gender))
|
||||
data.AddLine(GetInvalid(CheckIdentifier.PID, EncConditionBadRNGFrame));
|
||||
|
||||
if (enc is EncounterStatic5 { IsWildCorrelationPID: true })
|
||||
|
||||
Reference in New Issue
Block a user