Skip to content

[BUG] Teleport permission checks fail when DM is at a different location than the requesting player #1740

Description

@rexy712

Describe the bug
When a player requests a teleport regardless of the teleport request mode, if the DM is in a different location than them, due to a LocalID lookup error the request always fails.

To Reproduce
Steps to reproduce the behavior:

  1. Create 2 locations, 'Start' and 'Other'. Add a spawn location to Start.
  2. Add a player to Start.
  3. Add a player-owned token to Start.
  4. Create a teleport zone in Start which leads to the spawn location, set it to Request mode or Enabled.
  5. Move the DM to Other.
  6. Have the player move the token onto the teleport zone.
  7. No teleport request is ever shown to the DM if in Request mode. No teleport happens if in Enabled.

Expected behavior
Teleport requests should be seen by the DM if in another location, or the teleport should succeed if in Enabled mode.

Screenshots

out.mp4

Desktop:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions