diff --git a/AutoLegalityMod/AutoModPlugins.csproj b/AutoLegalityMod/AutoModPlugins.csproj index 5b552d5d..75748254 100644 --- a/AutoLegalityMod/AutoModPlugins.csproj +++ b/AutoLegalityMod/AutoModPlugins.csproj @@ -14,7 +14,7 @@ - + diff --git a/AutoModTests/AutoModTests.csproj b/AutoModTests/AutoModTests.csproj index 4fedd747..57b408fc 100644 --- a/AutoModTests/AutoModTests.csproj +++ b/AutoModTests/AutoModTests.csproj @@ -7,7 +7,7 @@ - + all diff --git a/Directory.Build.props b/Directory.Build.props index 8a0ae468..402c3ce1 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ net7.0 - 23.9.16 + 23.9.25 11 enable en diff --git a/PKHeX.Core.AutoMod/AutoMod/Legalization/SimpleEdits.cs b/PKHeX.Core.AutoMod/AutoMod/Legalization/SimpleEdits.cs index 815e6dac..996fc218 100644 --- a/PKHeX.Core.AutoMod/AutoMod/Legalization/SimpleEdits.cs +++ b/PKHeX.Core.AutoMod/AutoMod/Legalization/SimpleEdits.cs @@ -569,13 +569,13 @@ public static void SetAwakenedValues(this PKM pk, IBattleTemplate set) return; Span result = stackalloc byte[6]; AwakeningUtil.SetExpectedMinimumAVs(result, (PB7)pb7); - var EVs = set.EVs; - pb7.AV_HP = Math.Max(result[0], (byte)EVs[0]); - pb7.AV_ATK = Math.Max(result[1], (byte)EVs[1]); - pb7.AV_DEF = Math.Max(result[2], (byte)EVs[2]); - pb7.AV_SPA = Math.Max(result[3], (byte)EVs[4]); - pb7.AV_SPD = Math.Max(result[4], (byte)EVs[5]); - pb7.AV_SPE = Math.Max(result[5], (byte)EVs[3]); + var EVs = set.EVs.Select(z => (byte)Math.Min(z, 200)).ToArray(); + pb7.AV_HP = Math.Max(result[0], EVs[0]); + pb7.AV_ATK = Math.Max(result[1], EVs[1]); + pb7.AV_DEF = Math.Max(result[2], EVs[2]); + pb7.AV_SPA = Math.Max(result[3], EVs[4]); + pb7.AV_SPD = Math.Max(result[4], EVs[5]); + pb7.AV_SPE = Math.Max(result[5], EVs[3]); } public static void SetHTLanguage(this PKM pk, byte prefer) diff --git a/PKHeX.Core.AutoMod/PKHeX.Core.AutoMod.csproj b/PKHeX.Core.AutoMod/PKHeX.Core.AutoMod.csproj index 4b20593c..3be71e0b 100644 --- a/PKHeX.Core.AutoMod/PKHeX.Core.AutoMod.csproj +++ b/PKHeX.Core.AutoMod/PKHeX.Core.AutoMod.csproj @@ -1,7 +1,7 @@  - + diff --git a/PKHeX.Core.Enhancements/PKHeX.Core.Enhancements.csproj b/PKHeX.Core.Enhancements/PKHeX.Core.Enhancements.csproj index 4b20593c..3be71e0b 100644 --- a/PKHeX.Core.Enhancements/PKHeX.Core.Enhancements.csproj +++ b/PKHeX.Core.Enhancements/PKHeX.Core.Enhancements.csproj @@ -1,7 +1,7 @@  - + diff --git a/PKHeX.Core.Injection/PKHeX.Core.Injection.csproj b/PKHeX.Core.Injection/PKHeX.Core.Injection.csproj index ff61a287..e81f089e 100644 --- a/PKHeX.Core.Injection/PKHeX.Core.Injection.csproj +++ b/PKHeX.Core.Injection/PKHeX.Core.Injection.csproj @@ -2,7 +2,7 @@ - +