mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-04-25 08:10:48 -05:00
Don't recognize XD eevee->umbreon as colostarter
This commit is contained in:
parent
f3e0ebd163
commit
5c0498ddbe
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
|
@ -540,7 +540,13 @@ private static bool IsAzurillEdgeCaseM(PKM pk, uint nature, uint oldpid)
|
|||
|
||||
private static bool GetColoStarterMatch(PKM pk, uint top, uint bot, ReadOnlySpan<uint> IVs, out PIDIV pidiv)
|
||||
{
|
||||
if (pk.Version != (int)GameVersion.CXD || pk.Species is not ((int)Species.Espeon or (int)Species.Umbreon))
|
||||
bool starter = pk.Version == (int)GameVersion.CXD && pk.Species switch
|
||||
{
|
||||
(int)Species.Espeon when pk.Met_Level >= 25 => true,
|
||||
(int)Species.Umbreon when pk.Met_Level >= 26 => true,
|
||||
_ => false,
|
||||
};
|
||||
if (!starter)
|
||||
return GetNonMatch(out pidiv);
|
||||
|
||||
var iv1 = GetIVChunk(IVs, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user