Skip to content

Commit

Permalink
Add alolan evo species check
Browse files Browse the repository at this point in the history
can't change to a local variant form if it was originally obtained as a
non-variant form (no evolutions!)
  • Loading branch information
kwsch committed Apr 7, 2018
1 parent 51612b8 commit caa32c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PKHeX.Core/Legality/Checks.cs
Expand Up @@ -2165,7 +2165,8 @@ bool IsValidPikachuCap()

if (pkm.Format >= 7 && Info.Generation < 7 && pkm.AltForm != 0)
{
if (pkm.Species == 25 || Legal.AlolanOriginForms.Contains(pkm.Species))
if (pkm.Species == 25 || Legal.AlolanOriginForms.Contains(pkm.Species)
|| Legal.AlolanVariantEvolutions12.Contains(EncounterMatch.Species))
{ AddLine(Severity.Invalid, V317, CheckIdentifier.Form); return; }
}
if (pkm.AltForm > 0 && new[] {Legal.BattleForms, Legal.BattleMegas, Legal.BattlePrimals}.Any(arr => arr.Contains(pkm.Species)))
Expand Down

1 comment on commit caa32c1

@kwsch
Copy link
Owner Author

@kwsch kwsch commented on caa32c1 Apr 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.