From 29ff49b338b76cac53d202fc1d7390464c406d50 Mon Sep 17 00:00:00 2001 From: Cussa Mitre Date: Fri, 16 Feb 2024 22:44:18 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Only=20use=20item=20if=20there?= =?UTF-8?q?=20is=20an=20item?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (adjust if condition) --- module/rolls/roll.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/rolls/roll.mjs b/module/rolls/roll.mjs index 709028b..eaf6d8d 100644 --- a/module/rolls/roll.mjs +++ b/module/rolls/roll.mjs @@ -224,8 +224,8 @@ export class Trued6Roll { finalRoll = await this.sendRollToChat(attackRoll, actor, data, this.RollStyles.Normal, actorRollData); } if (data.itemId && - (rollStyle == this.RollStyles.Disadvantage && roll.total == 0) || - rollStyle == this.RollStyles.Normal) { + ((rollStyle == this.RollStyles.Disadvantage && roll.total == 0) || + rollStyle == this.RollStyles.Normal)) { let item = actor.items.get(data.itemId); await item.updateUsage(roll); }