mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 22:08:35 +00:00
Add Apricorn & Hidden Ability check
Thanks Eskuero!
This commit is contained in:
parent
f728608216
commit
908ff709c6
1 changed files with 3 additions and 0 deletions
|
@ -403,6 +403,9 @@ namespace PKHeX
|
||||||
? new LegalityCheck(Severity.Invalid, "Non-Pokéball on Male-Only egg.")
|
? new LegalityCheck(Severity.Invalid, "Non-Pokéball on Male-Only egg.")
|
||||||
: new LegalityCheck(Severity.Valid, "Pokéball on Male-Only egg.");
|
: new LegalityCheck(Severity.Valid, "Pokéball on Male-Only egg.");
|
||||||
|
|
||||||
|
if (pk6.AbilityNumber == 4 && 0x10 < pk6.Ball && pk6.Ball < 0x18) // Apricorn Ball
|
||||||
|
return new LegalityCheck(Severity.Invalid, "Apricorn Ball with Hidden Ability.");
|
||||||
|
|
||||||
if (pk6.Species > 650 && pk6.Species != 700) // Sylveon
|
if (pk6.Species > 650 && pk6.Species != 700) // Sylveon
|
||||||
return !Legal.WildPokeballs.Contains(pk6.Ball)
|
return !Legal.WildPokeballs.Contains(pk6.Ball)
|
||||||
? new LegalityCheck(Severity.Invalid, "Unobtainable ball for Kalos origin.")
|
? new LegalityCheck(Severity.Invalid, "Unobtainable ball for Kalos origin.")
|
||||||
|
|
Loading…
Add table
Reference in a new issue