mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +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 (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))
|
if (Legal.getWildBalls(pkm).Contains(pkm.Ball))
|
||||||
AddLine(Severity.Valid, "Correct ball on ingame encounter.", CheckIdentifier.Ball);
|
AddLine(Severity.Valid, "Correct ball on ingame encounter.", CheckIdentifier.Ball);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue