We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f138db9 + 8689dc2 commit f449f63Copy full SHA for f449f63
src/module.js
@@ -137,12 +137,12 @@ Hooks.on("deleteCombat", function () {
137
* Pre-process chat message to set 'speaking as' to correspond
138
* to our 'speaking as'
139
*/
140
-Hooks.on("preCreateChatMessage", function (chatMessage) {
+Hooks.on("preCreateChatMessage", function (chatMessage, data) {
141
let chatData = {
142
speaker: {
143
//actor: null,
144
//The above line is causing issues with chat buttons in v11 in certain systems. Will revert if it causes unforseen issues in other systems.
145
- scene: null,
+ scene: data.speaker?.scene,
146
flags: {},
147
},
148
};
0 commit comments