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 <noreply@anthropic.com>
This commit is contained in:
donnyandClaude Fable 5.1 committed 2026-10-14 20:58:56 -07:00
1 parent e6d3ec30d0
commit 6480fd778d
1 file changed
+7 -1
+7 -1
View File
@@ -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