mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-21 06:45:49 -07:00
Fix Fill choking on itself in minimal + full games
This commit is contained in:
7
Fill.py
7
Fill.py
@@ -183,7 +183,12 @@ def fill_restrictive(multiworld: MultiWorld, base_state: CollectionState, locati
|
||||
base_state, [], multiworld.get_filled_locations(item.player)
|
||||
if single_player_placement else None)
|
||||
for placement in placements:
|
||||
if multiworld.worlds[placement.item.player].options.accessibility != "minimal" and not placement.can_reach(state):
|
||||
if (
|
||||
multiworld.worlds[placement.item.player].options.accessibility != "minimal"
|
||||
# accessibility_corrections can clean up the case where the location's player is minimal
|
||||
and multiworld.worlds[placement.player].options.accessibility != "minimal"
|
||||
and not placement.can_reach(state)
|
||||
):
|
||||
placement.item.location = None
|
||||
unplaced_items.append(placement.item)
|
||||
placement.item = None
|
||||
|
||||
Reference in New Issue
Block a user