Whitelist trade5bw for pid check

PID is forced by the encounter
Closes #4562
This commit is contained in:
Kurt 2025-09-24 23:35:07 -05:00
parent 83beeaa5d0
commit 8d0bd79708

View File

@ -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 })