Describe the bug
When player controls more than one actor, this check on line 27 of hooks produce unknown id error.
"if (game.user.isGM || owner.id === userId) {"
Thank you.
To Reproduce
Steps to reproduce the behavior:
Give player ownership of more than one actor
drag and drop actors onto canvas
Run as player (works OK as GM)
Update actor somehow
See error
Expected behavior
No error
Use null check on owner.id, make line 27 in hooks.js
"if (game.user.isGM || owner?.id === userId) {"
Screenshots
If applicable, add screenshots to help explain your problem.
Game System and version [twodsix 4.5.2]
Polyglot Version [2.3.16]
Are you using Babele? [No]
Additional context
Add any other context about the problem here.
Describe the bug When player controls more than one actor, this check on line 27 of hooks produce unknown id error. "if (game.user.isGM || owner.id === userId) {" Thank you. To Reproduce Steps to reproduce the behavior:
Expected behavior No error Use null check on owner.id, make line 27 in hooks.js "if (game.user.isGM || owner?.id === userId) {"
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.