From 7535e5f340742291fca6e1a23002c68b888e1430 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 5 May 2026 21:48:24 +0200 Subject: [PATCH] Fix v14: /roll dans le tchat --- changelog.md | 2 ++ module/rdd-commands.js | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/changelog.md b/changelog.md index d3d36795..0f9ecea3 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,8 @@ ## 13.0.37 - L'urgence d'Illisys +- Corrections v14 + - on peut utiliser les commandes foundry dans le tchat (par exemple, /roll 1d6) - Le Haut-rêve est de nouveau proposé dans les options d'initiative - Nouvelle règle optionnelle: choisir si seules les armes équipées sont proposées en combat diff --git a/module/rdd-commands.js b/module/rdd-commands.js index 1ccc0705..d5c526f4 100644 --- a/module/rdd-commands.js +++ b/module/rdd-commands.js @@ -218,16 +218,16 @@ export class RdDCommands { /* -------------------------------------------- */ /* Manage chat commands */ processChatCommand(commandLine, content = '', msg = {}) { - // Setup new message's visibility - ChatUtility.applyRollMode(msg) - msg.type = 0; - + if (!this.commandsTable) { this._registerCommands() } - + let command = commandLine[0].toLowerCase(); if (this._isCommandHandled(command)) { + // Setup new message's visibility + ChatUtility.applyRollMode(msg) + msg.type = 0; let params = commandLine.slice(1); this._processCommand(this.commandsTable, command, params, content, msg) return true