From dd262e3cb4e60cbcf2bfe65445aea69bd8ff8d31 Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:21:14 +0200 Subject: [PATCH] This PR doesn't need to be so complicated --- worlds/witness/hints.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worlds/witness/hints.py b/worlds/witness/hints.py index a1ca1b081d3c..6ac3c2fa204b 100644 --- a/worlds/witness/hints.py +++ b/worlds/witness/hints.py @@ -398,6 +398,8 @@ def word_area_hint(world: "WitnessWorld", hinted_area: str, corresponding_items: any local lasers to be found in this area. """ + corresponding_items = [item for item in corresponding_items if item is not None] + local_progression = sum(item.player == world.player and item.advancement for item in corresponding_items) non_local_progression = sum(item.player != world.player and item.advancement for item in corresponding_items)