From 2c0f4d0e916dd8ab98fd8ff6e340ce4cf98a490d Mon Sep 17 00:00:00 2001 From: sora10pls <17801814+sora10pls@users.noreply.github.com> Date: Sat, 20 May 2023 15:17:41 -0400 Subject: [PATCH] Update ItemStorage7SM.cs --- PKHeX.Core/Items/ItemStorage7SM.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Items/ItemStorage7SM.cs b/PKHeX.Core/Items/ItemStorage7SM.cs index 59baed90d..563a7f166 100644 --- a/PKHeX.Core/Items/ItemStorage7SM.cs +++ b/PKHeX.Core/Items/ItemStorage7SM.cs @@ -208,7 +208,7 @@ public bool IsLegal(InventoryType type, int itemIndex, int itemCount) if (items.BinarySearch((ushort)itemIndex) < 0) return false; - return Unreleased.BinarySearch((ushort)itemIndex) >= 0; + return Unreleased.BinarySearch((ushort)itemIndex) < 0; } public ReadOnlySpan GetItems(InventoryType type) => type switch