From 900bd9c794f0cc9abd5d7200eb7bd6eb32e0d853 Mon Sep 17 00:00:00 2001 From: Manu <52102823+Manu098vm@users.noreply.github.com> Date: Wed, 26 Feb 2025 05:22:03 +0100 Subject: [PATCH] LGPE too cannot redeem wondercards with an ID over 2048 --- SwitchGiftDataManager.WinForm/MainWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwitchGiftDataManager.WinForm/MainWindow.cs b/SwitchGiftDataManager.WinForm/MainWindow.cs index dd97607..4ec677d 100644 --- a/SwitchGiftDataManager.WinForm/MainWindow.cs +++ b/SwitchGiftDataManager.WinForm/MainWindow.cs @@ -419,7 +419,7 @@ public partial class MainWindow : Form var curr = ((ListBox)sender).Items[e.Index].ToString()!; var wcid = UInt16.Parse(Regex.Match(curr, @"(?<=\#)(.*?)(?=\:)").Groups[1].Value); var handled = false; - if ((CurrentGame is Games.BDSP && wcid >= 2048) || (CurrentGame is Games.SWSH && e.Index >= 129)) + if ((CurrentGame is Games.BDSP or Games.LGPE && wcid >= 2048) || (CurrentGame is Games.SWSH && e.Index >= 129)) { if (!curr.Contains('\u2757')) ((ListBox)sender).Items[e.Index] = $"{curr} \u2757";