Allow setting to 11th slot for !PCD

Oops
This commit is contained in:
Kurt
2023-04-03 15:43:13 -07:00
parent d6ec64fb00
commit e53ca4b1af

View File

@@ -226,7 +226,7 @@ private void ClickSet(object sender, EventArgs e)
WinFormsUtil.Alert(MsgMysteryGiftSlotFail, $"{gift.Type} != {other.Type}");
return;
}
else if (gift is PCD { IsLockCapsule: true } != (index == 11))
else if (gift is PCD g && (g is { IsLockCapsule: true } != (index == 11)))
{
WinFormsUtil.Alert(MsgMysteryGiftSlotFail, $"{GameInfo.Strings.Item[533]} slot not valid.");
return;