Skip to content

Commit

Permalink
Fix Logical inventory set filtering for Archon upgrade rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Dec 23, 2023
1 parent 8d8c95c commit fd11a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/sc2/PoolFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fd11a04

Please sign in to comment.