Skip to content

[Bug]: onTokenMove responds to multiple tokens with different PC visibility settings #5925

@pizzystrizzy

Description

@pizzystrizzy

Describe the Bug

If you have two tokens, and set one to be visible to PCs and the other to not be visible to PCs, "onTokenMove" is called rather than the event "onMultipleTokensMove"

To Reproduce

  1. Create a library token with the macros 'onTokenMove' and 'onMultipleTokensMove' and fill them with enough text so you can tell which one is executing when.

  2. place two tokens on the map, setting one to be PC visible and one not to be PC visible

  3. Select both tokens at the same time and move them

Expected Behaviour

When you select two or more tokens that are all PC visible, or are all not PC visible, and you move them, the event 'onMultipleTokensMove' executes. That is what I would expect when selecting two tokens with different visibility settings as well.

Screenshots

No response

MapTool Info

1.18.6

Desktop

Windows

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions