From 7bcf29941286c2206d1370e6d2eb88f6406e2352 Mon Sep 17 00:00:00 2001 From: lordlou <87331798+lordlou@users.noreply.github.com> Date: Wed, 26 Apr 2023 20:23:52 -0400 Subject: [PATCH] SM: missing foreign item filter fix (#1774) --- worlds/sm/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/sm/__init__.py b/worlds/sm/__init__.py index ef7e50ba58e1..d60b0f51e65c 100644 --- a/worlds/sm/__init__.py +++ b/worlds/sm/__init__.py @@ -227,7 +227,7 @@ def set_entrance_rule(entrance, player, func): add_postAvailable_rule(location, self.player, value.PostAvailable) if self.multiworld.doors_colors_rando[self.player].value != 0: - add_item_rule(location, lambda item: item.type not in ammoItems or + add_item_rule(location, lambda item: item.game != self.game or item.type not in ammoItems or (item.type in ammoItems and \ (not item.advancement or (item.advancement and item.player == self.player))))