mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-09 18:47:31 -05:00
Fix gift OT wc7 legality checks
Only munchlax so far
This commit is contained in:
@@ -418,10 +418,13 @@ private static IEnumerable<MysteryGift> getMatchingWC7(PKM pkm, IEnumerable<Myst
|
||||
{
|
||||
if (pkm.Egg_Location == 0) // Not Egg
|
||||
{
|
||||
if (wc.SID != pkm.SID) continue;
|
||||
if (wc.TID != pkm.TID) continue;
|
||||
if (wc.OTGender != 3)
|
||||
{
|
||||
if (wc.SID != pkm.SID) continue;
|
||||
if (wc.TID != pkm.TID) continue;
|
||||
if (wc.OTGender != pkm.OT_Gender) continue;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(wc.OT) && wc.OT != pkm.OT_Name) continue;
|
||||
if (wc.OTGender != 3 && wc.OTGender != pkm.OT_Gender) continue;
|
||||
if (wc.PIDType == 0 && pkm.PID != wc.PID) continue;
|
||||
if (wc.PIDType == 2 && !pkm.IsShiny) continue;
|
||||
if (wc.PIDType == 3 && pkm.IsShiny) continue;
|
||||
|
||||
Reference in New Issue
Block a user