Fix chat target selection

This commit is contained in:
Dapoolp 2025-08-13 17:26:33 +02:00
parent e5452f1c2a
commit 291b215a31
2 changed files with 2 additions and 4 deletions

View file

@ -110,8 +110,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
if (this.hasTarget) {
this.hasHitTarget = this.targets.filter(t => t.hit === true).length > 0;
this.currentTargets = this.getTargetList();
console.log(this.targetMode, this.parent.targetHook)
this.registerTargetHook();
// this.registerTargetHook();
if (this.targetMode === true && this.hasRoll) {
this.targetShort = this.targets.reduce(

View file

@ -1,8 +1,7 @@
export default class DhpChatMessage extends foundry.documents.ChatMessage {
targetHook = null;
// targetSelection = null;
async renderHTML() {
async renderHTML(arg) {
const actor = game.actors.get(this.speaker.actor);
const actorData =
actor && this.isContentVisible