Fix incubator dispatch 997 by using active monsterIds contract

This commit is contained in:
AttilaNet
2026-11-07 23:24:59 +08:00
parent 42edc111d1
commit 5f0a9eaac3
11 changed files with 93 additions and 21 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ class WireIntegrationTests(unittest.TestCase):
if mon.get("process") == 2: mon["mode"] = 2
response = {"resCode": 0}
elif self.path.endswith("monsterSell"):
mid = body["monsterId"][0]
mid = body["monsterIds"][0]
state["monsters"] = [m for m in state["monsters"] if m["id"] != mid]
for slot in state["stacks"]:
if slot["monsterId"] == mid: slot["monsterId"] = 0