Use id instead of _id
parent
fa1fbe4877
commit
10efcb4d7a
|
@ -63,7 +63,7 @@ export class AcksDice {
|
||||||
const template = "systems/acks/templates/chat/roll-result.html";
|
const template = "systems/acks/templates/chat/roll-result.html";
|
||||||
|
|
||||||
let chatData = {
|
let chatData = {
|
||||||
user: game.user._id,
|
user: game.user.id,
|
||||||
speaker: speaker,
|
speaker: speaker,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -92,10 +92,13 @@ export class AcksDice {
|
||||||
rollMode = game.user.isGM ? "selfroll" : "blindroll";
|
rollMode = game.user.isGM ? "selfroll" : "blindroll";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (["gmroll", "blindroll"].includes(rollMode))
|
if (["gmroll", "blindroll"].includes(rollMode)) {
|
||||||
chatData["whisper"] = ChatMessage.getWhisperRecipients("GM");
|
chatData["whisper"] = ChatMessage.getWhisperRecipients("GM");
|
||||||
if (rollMode === "selfroll") chatData["whisper"] = [game.user._id];
|
}
|
||||||
if (rollMode === "blindroll") {
|
|
||||||
|
if (rollMode === "selfroll") {
|
||||||
|
chatData["whisper"] = [game.user.id];
|
||||||
|
} else if (rollMode === "blindroll") {
|
||||||
chatData["blind"] = true;
|
chatData["blind"] = true;
|
||||||
data.roll.blindroll = true;
|
data.roll.blindroll = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue