From 6f2c8acd1e0c4fd7994a18b3bebe89d09ed68aa0 Mon Sep 17 00:00:00 2001 From: Kirintale Date: Thu, 2 Mar 2023 11:31:29 +0000 Subject: [PATCH] Update VTM_Dice_Mechanics.js --- vampire-v5/VTM_Dice_Mechanics.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vampire-v5/VTM_Dice_Mechanics.js b/vampire-v5/VTM_Dice_Mechanics.js index 7987d3fe0a..2ec09d6a17 100644 --- a/vampire-v5/VTM_Dice_Mechanics.js +++ b/vampire-v5/VTM_Dice_Mechanics.js @@ -829,7 +829,8 @@ function calculateDc(run) { return dc; } -on("chat:message", function (msg) { +on("chat:message", function (msg_orig) { + let msg=_.clone(msg_orig); // returns the chat window command entered, all in lowercase. if (msg.type != 'api') { return;