Pokemon Emerald: Fix wonder trade race condition (#2983)

This commit is contained in:
Bryce Wilson
2024-04-01 07:07:11 -06:00
committed by GitHub
parent 4ac1866689
commit 35458380e6

View File

@@ -664,8 +664,10 @@ class PokemonEmeraldClient(BizHawkClient):
"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}":