From 6480fd778daaf23ae2634cd52d4ad369a207ba59 Mon Sep 17 00:00:00 2001 From: donnyjang Date: Wed, 14 Oct 2026 20:58:56 -0700 Subject: [PATCH] server: 0003-extra-deck-max TICKET-059: YGOPRO_MAX_EXTRA 15 -> 99 so the server stops silently truncating the extra deck while receiving it. Server tree, gframe/deck_manager.h. Replayed from Tools/YGOLegacy/patches/0003-extra-deck-max.patch in the Unity repo. Co-Authored-By: Claude Fable 5.1 --- server/gframe/deck_manager.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/gframe/deck_manager.h b/server/gframe/deck_manager.h index 4657cfd..468bc82 100644 --- a/server/gframe/deck_manager.h +++ b/server/gframe/deck_manager.h @@ -17,7 +17,13 @@ #endif #ifndef YGOPRO_MAX_EXTRA -#define YGOPRO_MAX_EXTRA 15 +// [YGOL] TICKET-059: the stock 15 is a SILENT truncation in DeckManager::LoadDeck -- +// extra cards past the cap are dropped while the deck is RECEIVED, before any rule +// check, so noCheck=T cannot save them. This fork does not limit the extra deck at +// all, so the number just has to be out of the way: 99 matches the client default +// (YGOLegacy.Services.DeckLimits.ExtraDeckDefault) and stays far below MAINC_MAX +// (250), which is what actually bounds main+extra in single_duel/tag_duel. +#define YGOPRO_MAX_EXTRA 99 #endif #ifndef YGOPRO_MAX_SIDE