From d259b497d787dbbf32362582a70a2f6a0bb75543 Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Thu, 21 Aug 2025 16:31:01 +0200 Subject: [PATCH] remove targetmode check --- module/data/chat-message/adversaryRoll.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/data/chat-message/adversaryRoll.mjs b/module/data/chat-message/adversaryRoll.mjs index 1447acb8..270b744b 100644 --- a/module/data/chat-message/adversaryRoll.mjs +++ b/module/data/chat-message/adversaryRoll.mjs @@ -112,7 +112,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel { this.currentTargets = this.getTargetList(); // this.registerTargetHook(); - if (this.targetMode === true && this.hasRoll) { + if (this.hasRoll) { this.targetShort = this.targets.reduce( (a, c) => { if (c.hit) a.hit += 1; @@ -131,9 +131,9 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel { getTargetList() { const targets = - this.targetMode && this.parent.isAuthor - ? this.targets - : (this.parent.getFlag(game.system.id, 'targets') ?? this.targets), + this.targetMode && this.parent.isAuthor + ? this.targets + : (this.parent.getFlag(game.system.id, 'targets') ?? this.targets), reactionRolls = this.parent.getFlag(game.system.id, 'reactionRolls'); if (reactionRolls) {