mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-22 20:13:06 +00:00
Update EvolutionGroup4.cs
Handles arceus-9 in future generations (reads as "not present in current game" via personal info if not stripped).
This commit is contained in:
parent
a296403595
commit
94f93d41c5
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ public sealed class EvolutionGroup4 : IEvolutionGroup
|
|||
{
|
||||
if (pk.Format > Generation && !enc.SkipChecks)
|
||||
{
|
||||
if (enc.Species is (ushort)Species.Arceus)
|
||||
result[0] = result[0] with { Form = 0 }; // Account for form-shift (9) for all forms, as plate is removed for transfer anyway.
|
||||
byte max = pk.MetLevel;
|
||||
EvolutionUtil.UpdateCeiling(result, max);
|
||||
enc = enc with { LevelMin = 1, LevelMax = max };
|
||||
|
|
Loading…
Reference in a new issue