mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Pokemon Emerald: Fix wonder trade race condition (#2983)
This commit is contained in:
@@ -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}":
|
||||
|
Reference in New Issue
Block a user