mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Fix chat target selection
This commit is contained in:
parent
e5452f1c2a
commit
291b215a31
2 changed files with 2 additions and 4 deletions
|
|
@ -110,8 +110,7 @@ export default class DHActorRoll extends foundry.abstract.TypeDataModel {
|
||||||
if (this.hasTarget) {
|
if (this.hasTarget) {
|
||||||
this.hasHitTarget = this.targets.filter(t => t.hit === true).length > 0;
|
this.hasHitTarget = this.targets.filter(t => t.hit === true).length > 0;
|
||||||
this.currentTargets = this.getTargetList();
|
this.currentTargets = this.getTargetList();
|
||||||
console.log(this.targetMode, this.parent.targetHook)
|
// this.registerTargetHook();
|
||||||
this.registerTargetHook();
|
|
||||||
|
|
||||||
if (this.targetMode === true && this.hasRoll) {
|
if (this.targetMode === true && this.hasRoll) {
|
||||||
this.targetShort = this.targets.reduce(
|
this.targetShort = this.targets.reduce(
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
export default class DhpChatMessage extends foundry.documents.ChatMessage {
|
||||||
targetHook = null;
|
targetHook = null;
|
||||||
// targetSelection = null;
|
|
||||||
|
|
||||||
async renderHTML() {
|
async renderHTML(arg) {
|
||||||
const actor = game.actors.get(this.speaker.actor);
|
const actor = game.actors.get(this.speaker.actor);
|
||||||
const actorData =
|
const actorData =
|
||||||
actor && this.isContentVisible
|
actor && this.isContentVisible
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue