Fix flood algorithm not checking if item is valid for selected location.

This commit is contained in:
LLCoolDave 2017-06-04 18:32:10 +02:00
parent bc9cfb6053
commit d853db308e
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ def flood_items(world):
random.shuffle(location_list)
spot_to_fill = None
for location in location_list:
if world.state.can_reach(location):
if world.state.can_reach(location) and location.item_rule(itempool[0]):
spot_to_fill = location
break