You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Region triggers do not appear to use the token triggering the behavior
To Reproduce
Steps to reproduce the behavior:
Create tile with a landing for _turn, and, past that, a single behavior applied to current tokens, Hurt/Heal, hurting for 3hp. Allow All Tokens, Controlled By Anybody, Manually Triggered
Create a region that triggers this behavior, subscribing to turn start and passing along data
Place two tokens, A and B, in this region
Start a combat
Rotate through turns
Expected behavior
On start turn, the token whose turn began takes 3hp of damage
Actual Behavior
Controlled tokens take damage
Additional context
This appears to be related to this line:
If, in browser dev tools, I set a conditional breakpoint to set tokens = [event.data.tokens] if the event passes a list of tokens, it works; however, not including a PR because I do not know what ripple effects that might cause or if other behaviors rely on this, or if I just have a configuration error in the above, and it does work if I correct it.
The text was updated successfully, but these errors were encountered:
I was able to replicate this. I also noticed some additional behavior that I think is related.
To Reproduce
Create tile with a landing for _turn, and, past that, a single behavior applied to current tokens, Hurt/Heal, hurting for 3hp. Allow All Tokens, Controlled By Anybody, Manually Triggered
Create a region that triggers this behavior, subscribing to turn start and passing along data
Place two tokens, A and B, in this region
Place a third token, C, outside the region
Start a combat
Rotate through turns
Expected Behavior
Regardless of what token is controlled: on Token A's turn, A takes damage, on Token B's turn, B takes damage, on Token C's turn, nothing takes damage.
Actual Behavior
With any controlled token: on any turn start, controlled token takes damage.
With no controlled token: on any turn start, all tokens inside of the region (A and B) take damage.
Additional Context
I tested the same region with an additional "scrolling text" behavior on Token Turn Start in the region, and the scrolling text only appears above a token inside of the region when it starts it's turn there (when token A's turn starts, scrolling text appears above A; when token B's turn starts, scrolling text appears above B; when token C's turn starts, no scrolling text appears). So it does not appear to be an issue inherent to regions.
Describe the bug
Region triggers do not appear to use the token triggering the behavior
To Reproduce
Steps to reproduce the behavior:
Expected behavior
On start turn, the token whose turn began takes 3hp of damage
Actual Behavior
Controlled tokens take damage
Additional context
This appears to be related to this line:
monks-active-tiles/monks-active-tiles.js
Line 2213 in 1ad565d
If, in browser dev tools, I set a conditional breakpoint to set tokens = [event.data.tokens] if the event passes a list of tokens, it works; however, not including a PR because I do not know what ripple effects that might cause or if other behaviors rely on this, or if I just have a configuration error in the above, and it does work if I correct it.
The text was updated successfully, but these errors were encountered: