From ab9a21f4025f8aea80e4130e78bbe36d60c243c5 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 8 Dec 2023 02:38:57 +0100 Subject: [PATCH] =?UTF-8?q?Utilisation=20de=20get=20plut=C3=B4t=20que=20fi?= =?UTF-8?q?nd=20par=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/rdd-combat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/rdd-combat.js b/module/rdd-combat.js index 1458a16c..39f23ae2 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -515,7 +515,7 @@ export class RdDCombat { static _callJetDeVie(event) { let actorId = event.currentTarget.attributes['data-actorId'].value; let tokenId = event.currentTarget.attributes['data-tokenId'].value; - let token = canvas.tokens.placeables.find(t => t.id == tokenId) + let token = canvas.tokens.get(tokenId) const actor = token?.actor ?? game.actors.get(actorId); if (actor?.isOwner) { actor.jetDeVie();