core: a Tag team can share one Extra Deck, each card keeps its partner (TICKET-433, v1.6.0)

Option DUEL_TAG_SHARED_EXTRA 0x200: start_duel moves tag_list_extra into
list_extra and renumbers, for both teams; tag_swap skips its Extra block.
card::tag_member is 0 from new_card and 1 from new_tag_card. QUERY_TAG_MEMBER
0x1000000 is written last in get_infos. Bit 0x100000 stays unused: old flags
(0xf81fff, 0x181fff, 0xFFFFFF) set it with no value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
donnyandClaude Opus 5.5 committed 2026-11-03 00:54:34 -07:00
1 parent c2eca90644
commit 8a73120dbb
5 files changed
+30 -9

No files matched your search

+3
View File
@@ -431,6 +431,9 @@ int32_t card::get_infos(byte* buf, uint32_t query_flag, int32_t use_cache) {
query_flag &= ~QUERY_LINK;
}
}
if(query_flag & QUERY_TAG_MEMBER) {
buffer_write<uint32_t>(p, tag_member);
}
byte* finalize = buf;
buffer_write<int32_t>(finalize, (int32_t)(p - buf));
buffer_write<uint32_t>(finalize, query_flag);