Version 12.0.6 - Le bazar d'Astrobazzarh #708

Merged
uberwald merged 3 commits from VincentVk/foundryvtt-reve-de-dragon:v11 into v11 2024-08-01 07:19:13 +02:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 4c82d85e6a - Show all commits

View File

@ -10,6 +10,8 @@
conteneur (et donc non affiché)
- vider les conteneurs supprime correctement toutes les informations liées
aux conteneurs/contenus
- Les messages pour les tirages dans le compendium utilisent le "roll mode"
courant pour leur visibilité
- Fix: restaurer la compatibilité Foundry 11
## 12.0.5 - Les mauvais jours d'Astrobazzarh

View File

@ -1,3 +1,4 @@
import { ChatUtility } from "../chat-utility.js";
import { HIDE_DICE, SYSTEM_RDD } from "../constants.js";
import { RdDItem } from "../item.js";
import { Misc } from "../misc.js";
@ -290,7 +291,7 @@ export class CompendiumTableHelpers {
sound: CONFIG.sounds.dice,
content: flavorContent
};
ChatMessage.create(messageData, { rollMode: "gmroll" });
await ChatUtility.createChatWithRollMode(game.user.id, messageData)
}
/* -------------------------------------------- */
@ -306,7 +307,7 @@ export class CompendiumTableHelpers {
whisper: game.user.id,
content: flavorContent
};
ChatMessage.create(messageData, { rollMode: "gmroll" });
await ChatUtility.createChatWithRollMode(game.user.id, messageData)
}
}