Fix v14: /roll dans le tchat

This commit is contained in:
2026-05-05 21:48:24 +02:00
parent d2326e5a25
commit 7535e5f340
2 changed files with 7 additions and 5 deletions

View File

@@ -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

View File

@@ -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