Correction boutons de maladresses pour joueur
This commit is contained in:
+8
-4
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user