From f896f1da6e983577bf47065a8139a0bf9b9bbd76 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 27 Oct 2024 08:47:44 +0100 Subject: [PATCH] Fix rename attackerToken MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit correction oubli sans gravité --- module/item/blessure.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/item/blessure.js b/module/item/blessure.js index 14c63724..b527249b 100644 --- a/module/item/blessure.js +++ b/module/item/blessure.js @@ -67,7 +67,7 @@ export class RdDItemBlessure extends RdDItem { } - static async createBlessure(actor, gravite, localisation = '', attacker) { + static async createBlessure(actor, gravite, localisation = '', attackerToken) { const definition = RdDItemBlessure.getDefinition(gravite) const blessure = { name: definition.label, @@ -77,7 +77,7 @@ export class RdDItemBlessure extends RdDItem { gravite: gravite, difficulte: - gravite, localisation: localisation, - origine: attacker?.name ?? "" + origine: attackerToken?.name ?? "" } } const blessures = await actor.createEmbeddedDocuments('Item', [blessure])