diff --git a/contract/probe-feature-messages.py b/contract/probe-feature-messages.py index 8da8a6d..45a4e58 100644 --- a/contract/probe-feature-messages.py +++ b/contract/probe-feature-messages.py @@ -113,7 +113,8 @@ # # With --dll it also gates patch 0023 (TICKET-378, attack preview): the server's # capability says protocol 8 + flag 0x400; each side summons a Probe Knight and -# the second seat enters its Battle Phase; its ATTACK_PREVIEW ask (0x5E: version, +# the second seat enters its Battle Phase (Tag: the fourth duelist on turn 4, since +# v1.1.1 allows no Battle Phase on tag turns 1-3); its ATTACK_PREVIEW ask (0x5E: version, # count, 4 bytes per pair) is answered to that seat alone (0x5E: version, count, # per pair the 4 bytes echoed + the engine's 24-byte answer): the knight into the # knight says both die, a direct attack says illegal, a pair the prompt does not @@ -2412,7 +2413,7 @@ def preview_answer(flags, attacker=0, target=0, damage0=0, damage1=0): def attack_preview_room(dll_path, port, label, mode): seats = 4 if mode == 2 else 2 - print("== attack preview, %s (%d seats + a watcher: a summon each, then the second seat's Battle Phase)" % (label, seats)) + print("== attack preview, %s (%d seats + a watcher: a summon each, then the %s Battle Phase)" % (label, seats, "fourth duelist's turn-4" if mode == 2 else "second seat's")) root = make_workspace() here = os.getcwd() os.chdir(root) @@ -2475,6 +2476,16 @@ def attack_preview_room(dll_path, port, label, mode): second = summon("turn 2") if not second: return + if mode == 2: + # v1.1.1: a Tag duel has no Battle Phase on turns 1-3; the fourth duelist (2B) is the first who may battle + for stage in ("turn 3", "turn 4"): + before = marks_of(everyone) + answer(second, struct.pack("