remove targetmode check

This commit is contained in:
Christopher Brown 2025-08-21 16:31:01 +02:00
parent 218f180fa0
commit d259b497d7

View file

@ -112,7 +112,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
this.currentTargets = this.getTargetList(); this.currentTargets = this.getTargetList();
// this.registerTargetHook(); // this.registerTargetHook();
if (this.targetMode === true && this.hasRoll) { if (this.hasRoll) {
this.targetShort = this.targets.reduce( this.targetShort = this.targets.reduce(
(a, c) => { (a, c) => {
if (c.hit) a.hit += 1; if (c.hit) a.hit += 1;
@ -131,9 +131,9 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
getTargetList() { getTargetList() {
const targets = const targets =
this.targetMode && this.parent.isAuthor this.targetMode && this.parent.isAuthor
? this.targets ? this.targets
: (this.parent.getFlag(game.system.id, 'targets') ?? this.targets), : (this.parent.getFlag(game.system.id, 'targets') ?? this.targets),
reactionRolls = this.parent.getFlag(game.system.id, 'reactionRolls'); reactionRolls = this.parent.getFlag(game.system.id, 'reactionRolls');
if (reactionRolls) { if (reactionRolls) {