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>
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>
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>