illandril / FoundryVTT-turn-marker

MIT License
2 stars 0 forks source link

User lacks permission to update Combat. #2

Closed thatlonelybugbear closed 11 months ago

thatlonelybugbear commented 11 months ago

When ending turn on a player's client that error notification pops up, with the corresponding error logged in console.

In the module.js:279 in the Hooks.on("updateCombat", (a,b,c,d)=>{}) a check for if (game.user?.isGM) return; should be fixing this.

PS: Good one! My new favorite Turn Marker module 👍

ps2: Just realised that this will not fix properly, as the foot prints won't be removed from the player's client with the above change, so it is more complicated than that 😅