From 58a6407040125cd90346dd2a523bc3d0f01f344f Mon Sep 17 00:00:00 2001 From: James White Date: Mon, 30 Mar 2026 16:27:10 +0100 Subject: [PATCH] SMW: Prevent receiving your own traps while aliased (#5763) --- worlds/smw/Client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/smw/Client.py b/worlds/smw/Client.py index 85524eb7ad..ef576a8738 100644 --- a/worlds/smw/Client.py +++ b/worlds/smw/Client.py @@ -132,7 +132,7 @@ class SMWSNIClient(SNIClient): self.instance_id = time.time() source_name = args["data"]["source"] - if "TrapLink" in ctx.tags and "TrapLink" in args["tags"] and source_name != ctx.slot_info[ctx.slot].name: + if "TrapLink" in ctx.tags and "TrapLink" in args["tags"] and source_name != ctx.player_names[ctx.slot]: trap_name: str = args["data"]["trap_name"] if trap_name not in trap_name_to_value: # We don't know how to handle this trap, ignore it