Skip to content

Commit

Permalink
Pokemon Emerald: Fix wonder trade race condition (#2983)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zunawe authored Apr 1, 2024
1 parent 4ac1866 commit 3545838
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions worlds/pokemon_emerald/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}":
Expand Down

0 comments on commit 3545838

Please sign in to comment.