Don't recognize XD eevee->umbreon as colostarter

This commit is contained in:
Kurt 2022-06-30 17:23:27 -07:00
parent f3e0ebd163
commit 5c0498ddbe

View File

@ -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);