asacolips-projects / 13th-age

13th Age system for Foundry VTT
4 stars 1 forks source link

[BUG] Triggers not working #440

Closed pmoore603 closed 2 months ago

pmoore603 commented 2 months ago

Describe the bug I do not see any triggers show up.

To Reproduce 1.) Created a fighter with

Expected behavior My expectation is that when the chat card is created, and the triggers are searched, each valid trigger should populate on the card. (Is that the expectation? I'm not sure, I can't find any documentation.)

Desktop (please complete the following information):

Additional context In looking at source code specifically in Triggers.mjs, function evaluateRow, there is a loop that processes registered triggers. On lines 44-45, the function will exit with the first isActive that returns true. This does not seem correct to me (unless my understanding of how triggers work is wrong).

pmoore603 commented 2 months ago

Not a bug. My expectations were not correct.