Skip to content

Commit

Permalink
HK: fix iterating all worlds instead of only HK worlds in stage_pre_f…
Browse files Browse the repository at this point in the history
…ill (ArchipelagoMW#3750)

Would cause generation to fail when generating with HK and another game.

Mistake in 6803c37.
  • Loading branch information
Mysteryem authored and agilbert1412 committed Aug 24, 2024
1 parent d17bcd0 commit 59c6e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/hk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def set_goal(player, grub_rule: typing.Callable[[CollectionState], bool]):
worlds = [world for world in multiworld.get_game_worlds(cls.game) if world.options.Goal in ["any", "grub_hunt"]]
if worlds:
grubs = [item for item in multiworld.get_items() if item.name == "Grub"]
all_grub_players = [world.player for world in multiworld.worlds.values() if world.options.GrubHuntGoal == GrubHuntGoal.special_range_names["all"]]
all_grub_players = [world.player for world in worlds if world.options.GrubHuntGoal == GrubHuntGoal.special_range_names["all"]]

if all_grub_players:
group_lookup = defaultdict(set)
Expand Down

0 comments on commit 59c6e67

Please sign in to comment.