Commit Graph
6 Commits
Author SHA1 Message Date
donnyandClaude Opus 5.5 d31b7b62d8 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
2026-11-12 14:54:23 -07:00
donnyandClaude Opus 5.5 8a73120dbb 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>
2026-11-03 00:54:34 -07:00
donnyandClaude Fable 5.1 bcd19c9cd0 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>
2026-10-24 18:35:20 -07:00
donnyandClaude Fable 5.1 5286cb2bfd core: a card the waiting tag partner holds leaves its own list (TICKET-415, v1.4.1)
Release / windows (push) Successful in 38s
Release / linux (push) Successful in 1m25s
Release / android (push) Successful in 48s
Release / release (push) Successful in 6s
Release / attach-windows (push) Successful in 1s
The Editor crashed in a Tag duel at a turn change: field::remove_card
erased list_extra past its end (memcpy off the vector) from move_to_field.
Reproduced outside Unity with the four real decks: Zane's Time Fusion
(810000954) picks a Fusion from the Extra Deck on his turn and Summons it
"during your next Standby Phase"; by then the partners have swapped, the
Fusion sits in tag_list_extra (still LOCATION_EXTRA, sequence into THAT
list), and remove_card erased the ACTIVE Extra Deck at that sequence:
Adrian's is empty, so the erase ran past the end. With a longer active
list it silently dropped the wrong card. The core is upstream's here; the
fork's swap order (core patch 0015) only decides which turn it lands on.

- field::tag_list_holding(card*): the tag_list_main / hand / extra of the
  card's controller that holds it, else null (Tag duels only).
- remove_card: such a card is erased from that list, the list's sequences
  are renumbered, STATUS_TO_HAND_WITHOUT_CONFIRM and tag_extra_p_count are
  kept honest; move_card never treats it as a same-location reorder, so
  it goes through remove_card + add_card like any other move.
- Probe: tag_across_swap_suite hosts a Tag room where seat 3's "Probe Time
  Fusion" (a workspace script) picks its Fusion on turn 4 and seat 2, with
  an empty Extra Deck, reaches its Standby Phase on turn 6: the Fusion is
  Summoned, the duel plays on, no MSG_RETRY, and turn 8's MSG_TAG_SWAP
  brings seat 3 back with an empty Extra Deck. The shipped v1.4.0 engine
  dies in this case.
- CHANGELOG v1.4.1 row; contract note on MSG_TAG_SWAP (the next swap lists
  one card fewer; MSG_MOVE's from-sequence counts into the waiting list).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-16 13:38:08 -07:00
donnyandClaude Fable 5.1 c3b5e6e13b core: Tag duel has no Battle Phase on turns 1-3; the fourth duelist battles first
Release / linux (push) Successful in 1m15s
Release / release (push) Successful in 13s
Release / attach-windows (push) Successful in 1s
Release / android (push) Successful in 35s
Release / windows (push) Successful in 41s
The official Tag Duel rules: duelists 1A, 2A and 1B cannot enter their Battle
Phase; 2B (turn 4) is the first who can. The core blocked turn 1 only, so team
B's first duelist could attack on turn 2. One helper,
field::is_opening_turn_without_bp, now decides for the idle command and for
Duel.IsAbleToEnterBP: turns 1-3 in DUEL_TAG_MODE, turn 1 otherwise,
DUEL_ATTACK_FIRST_TURN still lifts it. Rules only; no contract change.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-15 21:04:13 -07:00
donnyandClaude Fable 5.1 26f9baf9b4 core: import the rules core (ygopro-core 973672dc + fork patches)
The vendored ocgcore from the Unity repo (Tools/YGOLegacy/ocgcore at dev
HEAD). Upstream is nanahira/ygopro-core at 973672dc9ce7cb49f47173277ab1ad0e318b7593;
the seven files that differ from it carry the fork's core patches, already
applied: 0001 face-down Token setcode, 0004 effect damage step outside a
chain, 0008 Sandbox god mode, 0015 tag first seat holds the hand, 0022
attack preview, 0024 attack preview legality. Generated build/ output is
left out.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-14 20:58:16 -07:00