core: a Tag Field Spell takes the team's free Field slot (v1.7.2)
Release / release (push) Successful in 9s
Release / windows (push) Successful in 33s
Release / linux (push) Successful in 1m19s
Release / android (push) Successful in 59s
Release / attach-windows (push) Successful in 1s

get_fzone_landing sent a Field Spell to the playing partner's slot and
replaced the card there even when the other partner's slot was free; only
a control change took the free slot. A partner who got both of the team's
Fields back with Giant Trunade and played them one after the other lost
the first. Now a Field Spell takes the free slot whenever the playing
partner's is taken; with both taken it replaces the playing partner's.

Probe: new room "tag, two in one turn" (seq 5 then 6 on turn 1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WoiqG2TqZQmJ8tTn8tYpgy
This commit is contained in:
donnyandClaude Opus 5.5 committed 2026-11-12 14:54:23 -07:00
1 parent 00ed2796f1
commit d31b7b62d8
4 files changed
+38 -16

No files matched your search

+3 -4
View File
@@ -649,8 +649,8 @@ uint8_t field::get_fzone_sequence(uint8_t playerid, uint8_t fseq) const {
bool field::is_fzone_zone(uint32_t zone) const {
return zone == (0x1U << 5) || (has_two_fields() && zone == (0x1U << 6));
}
// the slot a Field Spell lands in for playerid: the playing partner's, which it replaces; a card that changes control
// while the playing partner's slot is taken and the other is free takes the free one
// the slot a Field Spell lands in for playerid: the playing partner's, which it replaces; when the playing partner's
// slot is taken and the other is free, it takes the free one
uint8_t field::get_fzone_landing(card* pcard, uint8_t playerid) const {
if(!has_two_fields())
return 5;
@@ -659,8 +659,7 @@ uint8_t field::get_fzone_landing(card* pcard, uint8_t playerid) const {
return pcard->current.sequence;
uint8_t mine = get_fzone_sequence(playerid, 0);
uint8_t other = get_fzone_sequence(playerid, 1);
if(player[playerid].list_szone[mine] && !player[playerid].list_szone[other]
&& pcard->current.location == LOCATION_SZONE && pcard->current.controler != playerid)
if(player[playerid].list_szone[mine] && !player[playerid].list_szone[other])
return other;
return mine;
}