Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Having only one custom condition breaks the token HUD #733

Open
heatblayze opened this issue Jan 24, 2023 · 0 comments
Open

Having only one custom condition breaks the token HUD #733

heatblayze opened this issue Jan 24, 2023 · 0 comments
Assignees
Labels
bug Something isn't working unverified Bug not yet validated

Comments

@heatblayze
Copy link

Describe the bug
Having only one custom condition prints out errors into the console whenever you try to right-click a token, and prevents you from opening the HUD on other tokens.

To Reproduce
Steps to reproduce the behavior:

  1. Place some tokens into the tabletop.
  2. Enable Enhanced Conditions in the CUBPuter, then open the Condition Lab.
  3. Change Mapping Type to "Other/Imported".
  4. Add a row, then click Save Mapping.
  5. Right-click tokens. Token HUD does not function correctly.

Expected behavior
The token HUD should remain functional and the single condition should be available.

Screenshots
(Note: below I am attempting to open the HUD on a different token than the one that it appears on)
image

Environment Info:

  • Foundry Version: Version 10 - Build 291
  • Game System / Version: Cyberpunk RED - CORE v0.86.0 (although have tested in others and can reproduce)
  • CUB Version: 1.10.4
  • Browser: Chrome
  • OS: Windows 11

Additional context
Having none is fine, and having more than one is also fine.

Here is the error that appears in the console:
foundry.js:747 TypeError: CONFIG.statusEffects.concat is not a function [Detected 1 package: combat-utility-belt] at TokenHUD._getStatusEffectChoices (foundry.js:71459:33) at TokenHUD._getStatusEffectChoices (token.js:199:40) at TokenHUD.getData (foundry.js:71429:30) at TokenHUD._render (foundry.js:5108:29) at TokenHUD._render (foundry.js:68578:17) at TokenHUD.render (foundry.js:5067:10) at TokenHUD.bind (foundry.js:68553:10) at TokenHUD.bind (foundry.js:71376:18) at Token._onClickRight (foundry.js:25580:16) at MouseInteractionManager.callback (foundry.js:27813:45) at MouseInteractionManager._handleClickRight (foundry.js:28090:10) at MouseInteractionManager._handleRightDown (foundry.js:28070:22) at a.emit (index.js:181:35) at r.dispatchEvent (interaction.min.mjs:8:12235) at r.processPointerDown (interaction.min.mjs:8:14214) at t.recursiveFindHit (interaction.min.mjs:8:4098) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.recursiveFindHit (interaction.min.mjs:8:3882) at t.findHit (interaction.min.mjs:8:4157) at r.processInteractive (interaction.min.mjs:8:12841) at r.onPointerDown (interaction.min.mjs:8:13543)

@heatblayze heatblayze added bug Something isn't working unverified Bug not yet validated labels Jan 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working unverified Bug not yet validated
Projects
None yet
Development

No branches or pull requests

2 participants