Flag bred transfer mons

#2416
This commit is contained in:
Kurt
2019-11-28 11:51:23 -08:00
parent e8bdc34a18
commit f0cf28fbad
2 changed files with 5 additions and 2 deletions

View File

@@ -251,6 +251,7 @@ private void ParsePK8()
{
UpdateInfo();
UpdateChecks();
Transfer.VerifyTransferLegalityG8(this);
}
/// <summary>

View File

@@ -105,9 +105,11 @@ public void VerifyTransferLegalityG8(LegalityAnalysis data)
var pkm = data.pkm;
int species = pkm.Species;
var pi = (PersonalInfoSWSH)PersonalTable.SWSH.GetFormeEntry(species, pkm.AltForm);
if (!pi.IsPresentInGame)
if (!pi.IsPresentInGame) // Can't transfer
data.AddLine(GetInvalid(LTransferBad));
else if (pkm.GenNumber != 8)
else if (pkm.GenNumber != 8) // Can't transfer yet
data.AddLine(GetInvalid(LTransferBad));
else if (pi.PokeDexIndex == 0) // Can't breed cuz no transfer yet
data.AddLine(GetInvalid(LTransferBad));
}