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:
Kaphotics 2016-05-08 18:11:31 -07:00
parent 2b364f0ed3
commit 4e9ea707f9
2 changed files with 2 additions and 1 deletions

View File

@ -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.");

View File

@ -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
{