core: a Tag team on Master Rule 4/5 has a Field slot per partner (TICKET-384, v1.5.0)

Proposal 45. field::has_two_fields() (DUEL_TAG_MODE on Master Rule 4 or 5) gives
each team Spell/Trap sequence 5 for the partner who plays the team's first turn and
6 for the other; player_info::tag_partner flips in tag_swap and get_szone_size is 7
there. A Field Spell lands in the playing partner's slot (get_fzone_landing) and
replaces only that card; a control change takes the free slot when the playing
partner's is taken; a Set offers only the landing slot's bit. LOCATION_FZONE covers
both slots in card_state::is_location, filter_matching_card, filter_field_card,
is_location_useable and Duel.IsEnvironment; get_field_card(p, LOCATION_FZONE, 0) is
the playing partner's field, else the other, and 1 the remaining one. Singles, Match
and Master Rule 3 (slot 6 = a Pendulum Zone) are unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
donnyandClaude Fable 5.1 committed 2026-10-24 18:35:20 -07:00
1 parent 10ade7fc41
commit bcd19c9cd0
5 files changed
+98 -44

No files matched your search

+2 -1
View File
@@ -67,7 +67,8 @@ uint32_t card::get_summon_info() {
}
bool card_state::is_location(uint32_t loc) const {
if((loc & LOCATION_FZONE) && location == LOCATION_SZONE && sequence == 5)
// [YGOL] proposal 45: slot 6 is the second Field slot in Tag (Master Rule 4/5); a Master Rule 3 Pendulum Zone card there has pzone set
if((loc & LOCATION_FZONE) && location == LOCATION_SZONE && (sequence == 5 || (sequence == 6 && !pzone)))
return true;
if((loc & LOCATION_PZONE) && location == LOCATION_SZONE && pzone)
return true;