mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Add Poké Pelago ball check
Thanks Holla!
This commit is contained in:
parent
92d59fc3b5
commit
4cdb6a9271
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue