This commit is contained in:
Dapoolp 2025-08-24 22:32:38 +02:00
parent 6b7912f3f4
commit d35b9e8eb3
2 changed files with 4 additions and 3 deletions

View file

@ -113,7 +113,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;
@ -128,6 +128,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
this.canViewSecret = this.parent.speakerActor?.testUserPermission(game.user, 'OBSERVER');
this.canButtonApply = game.user.isGM;
this.isGM = game.user.isGM;
}
getTargetList() {