mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-04-25 08:10:48 -05:00
Whitelist trade5bw for pid check
PID is forced by the encounter Closes #4562
This commit is contained in:
parent
83beeaa5d0
commit
8d0bd79708
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user