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

[BUG] enhanced_condition.js, CUB and Tidy5e - uncaught error in: 'if (!actor.effects.size) continue;' #50

Open
DevConFox opened this issue Aug 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@DevConFox
Copy link

DevConFox commented Aug 14, 2022

Module Version:
v0.6.16

Describe the bug
AS GM, when updating the prototype token of a 'character' actor and no token is placed on the canvas, the "hasCondition" function throws an uncaught error at line 1429 'if (!actor.effects.size) continue;' due to entities in line 1405 being an array with one element of type 'undefined'.

To Reproduce
Steps to reproduce the behavior:

  1. Set up "Exhaustion 1-5" in CUBlab for Tidy5e Sheet Exhaustion
  2. Open "Prototype Token"
  3. Press "Update Token"

Expected behavior
Either check, if actor object exists in line 1429 or if element in entities array is not of type 'undefined' in line 1405

Browser:

  • Chrome

Foundry Version:
v9 Build 269

Game System:
dnd5e v1.6.3

Additional context
CUB v1.9.2
Tidy5e Sheet v0.5.33

@DevConFox DevConFox added the bug Something isn't working label Aug 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant