From a7f647e3ca6c2f267022575413f3bd57e703bb51 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Sun, 22 May 2022 18:02:33 -0700 Subject: [PATCH] Block collection of Sahasrahlah. (#562) --- SNIClient.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SNIClient.py b/SNIClient.py index 9173a45190d3..b7c9ba9036a1 100644 --- a/SNIClient.py +++ b/SNIClient.py @@ -530,7 +530,8 @@ async def deathlink_kill_player(ctx: Context): "Thieves' Town - Boss", 'Ice Palace - Boss', 'Misery Mire - Boss', - 'Turtle Rock - Boss'}} + 'Turtle Rock - Boss', + 'Sahasrahla'}} location_table_uw_id = {Regions.lookup_name_to_id[name]: data for name, data in location_table_uw.items()} @@ -974,8 +975,9 @@ def new_check(location_id): for location_id, mask in location_table_npc_id.items(): if npc_value & mask != 0 and location_id not in ctx.locations_checked: new_check(location_id) - if ctx.allow_collect and location_id in ctx.checked_locations and location_id not in ctx.locations_checked \ - and location_id in ctx.locations_info and ctx.locations_info[location_id].player != ctx.slot: + if ctx.allow_collect and location_id not in boss_locations and location_id in ctx.checked_locations \ + and location_id not in ctx.locations_checked and location_id in ctx.locations_info \ + and ctx.locations_info[location_id].player != ctx.slot: npc_value |= mask npc_value_changed = True if npc_value_changed: