From 35458380e6e08eab85203942b6415fd964907c84 Mon Sep 17 00:00:00 2001 From: Bryce Wilson Date: Mon, 1 Apr 2024 07:07:11 -0600 Subject: [PATCH] Pokemon Emerald: Fix wonder trade race condition (#2983) --- worlds/pokemon_emerald/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/worlds/pokemon_emerald/client.py b/worlds/pokemon_emerald/client.py index 0dccc1fe17a0..3b9f90270d17 100644 --- a/worlds/pokemon_emerald/client.py +++ b/worlds/pokemon_emerald/client.py @@ -664,8 +664,10 @@ def on_package(self, ctx: "BizHawkClientContext", cmd: str, args: dict) -> None: "cmd": "SetNotify", "keys": [f"pokemon_wonder_trades_{ctx.team}"], }, { - "cmd": "Get", - "keys": [f"pokemon_wonder_trades_{ctx.team}"], + "cmd": "Set", + "key": f"pokemon_wonder_trades_{ctx.team}", + "default": {"_lock": 0}, + "operations": [{"operation": "default", "value": None}] # value is ignored }])) elif cmd == "SetReply": if args.get("key", "") == f"pokemon_wonder_trades_{ctx.team}":