From 8af5851246a2e113999ce08c7cfb37abe28aff5d Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 25 May 2023 08:04:31 +0200 Subject: [PATCH] v10/v11 compatibility --- modules/malefices-utility.js | 2 +- system.json | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/malefices-utility.js b/modules/malefices-utility.js index e6a5e86..2492aa6 100644 --- a/modules/malefices-utility.js +++ b/modules/malefices-utility.js @@ -404,7 +404,7 @@ export class MaleficesUtility { console.log("Roll formula", diceFormula) let myRoll = new Roll(diceFormula).roll({ async: false }) await this.showDiceSoNice(myRoll, game.settings.get("core", "rollMode")) - rollData.roll = myRoll + rollData.roll = duplicate(myRoll) rollData.total = myRoll.total this.computeResults(rollData) diff --git a/system.json b/system.json index d3d2b9a..04dbdf8 100644 --- a/system.json +++ b/system.json @@ -61,7 +61,8 @@ "manifest": "https://www.uberwald.me/gitea/public/fvtt-malefices/raw/branch/master/system.json", "compatibility": { "minimum": "10", - "verified": "10" + "verified": "11", + "maximum": "11" }, "id": "fvtt-malefices", "primaryTokenAttribute": "secondary.health", @@ -72,7 +73,7 @@ ], "title": "Maléfices, le Jeu de Rôle", "url": "https://www.uberwald.me/gitea/public/fvtt-malefices", - "version": "10.1.4", - "download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.1.4.zip", + "version": "11.0.0", + "download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v11.0.0.zip", "background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp" } \ No newline at end of file