Correction boutons de maladresses pour joueur

This commit is contained in:
2025-12-19 03:02:35 +01:00
parent 10085dc3f1
commit c305f9712c
5 changed files with 81 additions and 9 deletions
+8 -4
View File
@@ -180,11 +180,15 @@ export class Misc {
return (a, b) => a + separator + b;
}
static connectedGMOrUser(ownerId = undefined) {
if (ownerId && game.user.id == ownerId) {
return ownerId;
static connectedUserOrGM(userId = undefined) {
if (userId && game.user.id == userId) {
return userId
}
return Misc.firstConnectedGM()?.id ?? game.user.id;
return Misc.firstConnectedGM()?.id
}
static connectedGMOrUser(userId = undefined) {
return Misc.connectedUserOrGM(userId) ?? game.user.id
}
static isRollModeHiddenToPlayer() {