Skip to content

[BUG] Combat tracker breaks when sending token into combat encounter #218

@Desmondchaser27

Description

@Desmondchaser27

Describe the bug
Whenever a token is right clicked and sent into a combat encounter in DND5e system, the combat encounter ui becomes invisible (due to an error).

To Reproduce
Steps to reproduce the behavior:

  1. Have only this module enabled (and libwrapper as it's required).
  2. Open an empty scene.
  3. Place a token and right-click it.
  4. Select the "Toggle Combat State".
  5. Notice the sidebar "Combat Encounters" tab will no longer load and an error is generated as in the screenshot below.
  6. Additionally, the token is no longer able to be selected
  7. These issue persist until combat is forcefully ended (via game.combat.endCombat() in console) and Foundry is reloaded (via a simple page reload).

Expected behavior
Combat Encounters

Screenshots
(This is what has to be selected to cause the issue)
Image

(And this is the resulting issue [notice the missing sidebar menu] )
Image

Desktop

  • Linux Arch (CachyOS)
  • Google Chrome 144.0.7559.59 (Official Build)

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