From fd11a04b40454bdb35095c372bf81b1bac413677 Mon Sep 17 00:00:00 2001 From: Ziktofel Date: Sat, 23 Dec 2023 15:32:31 +0100 Subject: [PATCH] Fix Logical inventory set filtering for Archon upgrade rule --- worlds/sc2/PoolFilter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/sc2/PoolFilter.py b/worlds/sc2/PoolFilter.py index 105ff7292492..27b4665f25b2 100644 --- a/worlds/sc2/PoolFilter.py +++ b/worlds/sc2/PoolFilter.py @@ -431,7 +431,7 @@ def attempt_removal(item: Item) -> bool: inventory = [item for item in inventory if not item.name.endswith("(Dark Templar/Avenger/Blood Hunter)")] if not {ItemNames.HIGH_TEMPLAR, ItemNames.SIGNIFIER, ItemNames.ASCENDANT, ItemNames.DARK_TEMPLAR} & logical_inventory_set: inventory = [item for item in inventory if not item.name.endswith("(Archon)")] - logical_inventory_set.difference_update((item for item in logical_inventory_set if item.name.endswith("(Archon)"))) + logical_inventory_set.difference_update((item_name for item_name in logical_inventory_set if item_name.endswith("(Archon)"))) if not {ItemNames.HIGH_TEMPLAR, ItemNames.SIGNIFIER, ItemNames.ARCHON_HIGH_ARCHON} & logical_inventory_set: inventory = [item for item in inventory if not item.name.endswith("(High Templar/Signifier)")] if ItemNames.SUPPLICANT not in logical_inventory_set: