Skip to content

Commit beb0183

Browse files
authored
Merge pull request #110 from League-of-Fabulous-Developers/dev
fix: target priority only for npc
2 parents d7f77d1 + dae55e3 commit beb0183

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

module/sheets/actor-standard-sheet.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,6 @@ export class FUStandardActorSheet extends ActorSheet {
12721272

12731273
const isShift = event.shiftKey;
12741274
const isCtrl = event.ctrlKey;
1275-
12761275
// Get the value of optionTargetPriorityRules from game settings
12771276
const settingPriority = game.settings.get('projectfu', 'optionTargetPriorityRules');
12781277

@@ -1285,7 +1284,7 @@ export class FUStandardActorSheet extends ActorSheet {
12851284
// if (isCtrl) {
12861285
// return promptCheckCustomizer(this.actor, item);
12871286
// } else {
1288-
if (settingPriority) { this._targetPriority(); }
1287+
if (settingPriority && this.actor?.type === "npc") { this._targetPriority(); }
12891288
return item.roll(isShift);
12901289
// }
12911290
}

0 commit comments

Comments
 (0)