Skip to content

Commit

Permalink
ItemLinks - Untested
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi committed Jun 13, 2024
1 parent 2ec8fa8 commit 38d2604
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions MultiServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1807,10 +1807,11 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
return
target_item, target_player, flags = ctx.locations[client.slot][location]

# Only allow scouting other players' locations if the item is for the slot that sent the scout
# TODO: Allow scouting Item Links items that *lead* to an item for client_player?
if client_player != desired_player and client_player != target_player:
continue
if client_player != desired_player:
# Only allow scouting other players' locations if the item is for client_player,
# or if the target_player is an item links group that the client_player is a part of.
if not (client_player == target_player or client_player in ctx.groups.get(target_player, set())):
continue

if create_as_hint:
hints.extend(collect_hint_location_id(ctx, client.team, desired_player, location))
Expand Down

0 comments on commit 38d2604

Please sign in to comment.