From bdae7cd42c975cb37f88471782b79eb5d62047b2 Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Tue, 14 Oct 2025 20:44:01 +0200 Subject: [PATCH] MultiServer: Fix hinting multi-copy items bleeding found status (#5547) * fix hinting multi-copy items bleeding found status * reword --- MultiServer.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/MultiServer.py b/MultiServer.py index 095cb36b..1de44cad 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -1200,16 +1200,17 @@ def collect_hints(ctx: Context, team: int, slot: int, item: typing.Union[int, st found = location_id in ctx.location_checks[team, finding_player] entrance = ctx.er_hint_data.get(finding_player, {}).get(location_id, "") + hint_status = status # Assign again because we're in a for loop if found: - status = HintStatus.HINT_FOUND - elif status is None: + hint_status = HintStatus.HINT_FOUND + elif hint_status is None: if item_flags & ItemClassification.trap: - status = HintStatus.HINT_AVOID + hint_status = HintStatus.HINT_AVOID else: - status = HintStatus.HINT_PRIORITY + hint_status = HintStatus.HINT_PRIORITY hints.append( - Hint(receiving_player, finding_player, location_id, item_id, found, entrance, item_flags, status) + Hint(receiving_player, finding_player, location_id, item_id, found, entrance, item_flags, hint_status) ) return hints