From 29ecb04ec3d79106448482ec59d39979228700bd Mon Sep 17 00:00:00 2001 From: Vivien DE BONA Date: Sun, 15 Oct 2023 16:25:00 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20utilisation=20d=E2=80=99une=20variable?= =?UTF-8?q?=20non=20d=C3=A9finie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/system/bol-utility.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/system/bol-utility.js b/module/system/bol-utility.js index 306837c..017b09d 100644 --- a/module/system/bol-utility.js +++ b/module/system/bol-utility.js @@ -193,7 +193,7 @@ export class BoLUtility { /* -------------------------------------------- */ static async ready() { - //$("#logo").attr("src", this.getLogoTopLeft() ) + //$("#logo").attr("src", this.getLogoTopLeft() ) $("#logo").css("content", `url(${this.getLogoTopLeft()})`) CONFIG.statusEffects = duplicate(game.bol.config.statusEffects) @@ -451,7 +451,7 @@ export class BoLUtility { BoLUtility.removeChatMessageId(msgId) console.log("Damage Handling", attackId, defenseMode, weaponId) - // Only GM process this + // Only GM process this if (rollData && rollData.defenderId) { if (rollData.defenseDone || defenseMode == 'damage-not-applied') { return @@ -472,7 +472,7 @@ export class BoLUtility { console.log("Armor roll -> result ", rollData) } if (defenseMode == 'damage-without-armor') { - rollData.finalDamage = atrollDatatackDef.damageTotal + rollData.finalDamage = rollData.damageTotal defender.sufferDamage(rollData.finalDamage) } if (defenseMode == 'hero-reduce-damage') { @@ -611,7 +611,7 @@ export class BoLUtility { attackId: rollData.id, attacker: rollData.attacker, defender: defender, - defenderHeroPoints:defender.getHeroPoints(), + defenderHeroPoints:defender.getHeroPoints(), defenderWeapons: defenderWeapons, damageTotal: rollData.damageTotal, damagesIgnoresArmor: rollData.damagesIgnoresArmor,