Fixes for RnK visibility

This commit is contained in:
Vlyan
2021-08-12 10:29:13 +02:00
parent 45af487a4b
commit 0d7ddddaee
5 changed files with 38 additions and 7 deletions

View File

@@ -302,8 +302,8 @@ export class RollL5r5e extends Roll {
// RollMode
const rMode = rollMode || messageData.rollMode || game.settings.get("core", "rollMode");
if (rollMode) {
ChatMessage.applyRollMode(messageData, rMode);
if (rMode) {
messageData = ChatMessage.applyRollMode(messageData, rMode);
}
// Prepare chat data
@@ -336,8 +336,8 @@ export class RollL5r5e extends Roll {
static fromData(data) {
const roll = super.fromData(data);
roll.data = duplicate(data.data);
roll.l5r5e = duplicate(data.l5r5e);
roll.data = foundry.utils.duplicate(data.data);
roll.l5r5e = foundry.utils.duplicate(data.l5r5e);
// get real Actor object
if (data.l5r5e.actor) {