Skip to content

Commit 3545838

Browse files
authored
Pokemon Emerald: Fix wonder trade race condition (#2983)
1 parent 4ac1866 commit 3545838

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

worlds/pokemon_emerald/client.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,10 @@ def on_package(self, ctx: "BizHawkClientContext", cmd: str, args: dict) -> None:
664664
"cmd": "SetNotify",
665665
"keys": [f"pokemon_wonder_trades_{ctx.team}"],
666666
}, {
667-
"cmd": "Get",
668-
"keys": [f"pokemon_wonder_trades_{ctx.team}"],
667+
"cmd": "Set",
668+
"key": f"pokemon_wonder_trades_{ctx.team}",
669+
"default": {"_lock": 0},
670+
"operations": [{"operation": "default", "value": None}] # value is ignored
669671
}]))
670672
elif cmd == "SetReply":
671673
if args.get("key", "") == f"pokemon_wonder_trades_{ctx.team}":

0 commit comments

Comments
 (0)