Pokemon Emerald: Fix wonder trade race condition (#2983)
This commit is contained in:
parent
4ac1866689
commit
35458380e6
|
@ -664,8 +664,10 @@ class PokemonEmeraldClient(BizHawkClient):
|
||||||
"cmd": "SetNotify",
|
"cmd": "SetNotify",
|
||||||
"keys": [f"pokemon_wonder_trades_{ctx.team}"],
|
"keys": [f"pokemon_wonder_trades_{ctx.team}"],
|
||||||
}, {
|
}, {
|
||||||
"cmd": "Get",
|
"cmd": "Set",
|
||||||
"keys": [f"pokemon_wonder_trades_{ctx.team}"],
|
"key": f"pokemon_wonder_trades_{ctx.team}",
|
||||||
|
"default": {"_lock": 0},
|
||||||
|
"operations": [{"operation": "default", "value": None}] # value is ignored
|
||||||
}]))
|
}]))
|
||||||
elif cmd == "SetReply":
|
elif cmd == "SetReply":
|
||||||
if args.get("key", "") == f"pokemon_wonder_trades_{ctx.team}":
|
if args.get("key", "") == f"pokemon_wonder_trades_{ctx.team}":
|
||||||
|
|
Loading…
Reference in New Issue