Fix get_hint not checking for finding_player

This commit is contained in:
NewSoupVi
2025-02-16 21:18:13 +01:00
committed by GitHub
parent 34795b598a
commit aa1180e0aa

View File

@@ -783,7 +783,7 @@ class Context:
def get_hint(self, team: int, finding_player: int, seeked_location: int) -> typing.Optional[Hint]:
for hint in self.hints[team, finding_player]:
if hint.location == seeked_location:
if hint.location == seeked_location and hint.finding_player == finding_player:
return hint
return None