mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-06-14 09:30:36 -05:00
Fix untraded Glalie/Steelix link gift history chk
Has an OT, HT=player but doesn't get a geolocation, behaves like a wc6 gift.
This commit is contained in:
parent
2b364f0ed3
commit
4e9ea707f9
|
|
@ -583,7 +583,7 @@ private LegalityCheck verifyHistory()
|
|||
if (pk6.OT_Feeling != MatchedWC6.OT_Feeling)
|
||||
return new LegalityCheck(Severity.Invalid, "Event " + (MatchedWC6.OT_Feeling == 0 ? "should not have an OT Memory Feeling value" : "OT Memory Feeling should be index " + MatchedWC6.OT_Feeling) + ".");
|
||||
}
|
||||
if (!pk6.WasEvent && (pk6.HT_Name.Length == 0 || pk6.Geo1_Country == 0)) // Is not Traded
|
||||
if (!pk6.WasEvent && !(pk6.WasLink && (EncounterMatch as EncounterLink)?.OT == false) && (pk6.HT_Name.Length == 0 || pk6.Geo1_Country == 0)) // Is not Traded
|
||||
{
|
||||
if (pk6.HT_Name.Length != 0)
|
||||
return new LegalityCheck(Severity.Invalid, "GeoLocation -- HT Name present but has no previous Country.");
|
||||
|
|
|
|||
|
|
@ -223,6 +223,7 @@ public class EncounterLink
|
|||
public bool XY = true;
|
||||
public bool ORAS = true;
|
||||
public bool? Shiny = false;
|
||||
public bool OT = false;
|
||||
}
|
||||
public enum Nature
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user