Add Poké Pelago ball check

Thanks Holla!
This commit is contained in:
Kurt 2017-01-24 19:49:40 -08:00
parent 92d59fc3b5
commit 4cdb6a9271

View file

@ -794,6 +794,14 @@ namespace PKHeX.Core
}
if (EncounterType == typeof (EncounterSlot[]))
{
if (pkm.Met_Location == 30016 && pkm.Gen7) // Poké Pelago
{
if (pkm.Ball == 0x04)
AddLine(Severity.Valid, "Correct ball on Poké Pelago encounter.", CheckIdentifier.Ball);
else
AddLine(Severity.Invalid, "Incorrect ball on Poké Pelago encounter.", CheckIdentifier.Ball);
}
if (Legal.getWildBalls(pkm).Contains(pkm.Ball))
AddLine(Severity.Valid, "Correct ball on ingame encounter.", CheckIdentifier.Ball);
else