mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
remove targetmode check
This commit is contained in:
parent
218f180fa0
commit
d259b497d7
1 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue