From 6d0e5321a22b3399f9e83b736b043d0d6e2e9b9a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 8 Oct 2022 11:56:52 +0200 Subject: [PATCH] =?UTF-8?q?Nommage=20homog=C3=A8ne?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/rdd-combat.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/rdd-combat.js b/module/rdd-combat.js index 5108c363..88d3e24c 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -721,12 +721,12 @@ export class RdDCombat { } } - isVisible(token, defender) { - return canvas.effects.visibility.testVisibility(defender.center, { object: token }) + isVisible(token, defenderToken) { + return canvas.effects.visibility.testVisibility(defenderToken.center, { object: token }) } - distance(t, defenderToken) { - return Number(canvas.grid.measureDistances([{ ray: new Ray(t.center, defenderToken.center) }], { gridSpaces: false })).toFixed(1); + distance(token, defenderToken) { + return Number(canvas.grid.measureDistances([{ ray: new Ray(token.center, defenderToken.center) }], { gridSpaces: false })).toFixed(1); } _ajustementPortee(dist, arme) {