From c453f59db368927bcea194c95f9330115d4790c5 Mon Sep 17 00:00:00 2001 From: nsalyzyn Date: Thu, 18 Dec 2025 10:31:33 -0700 Subject: [PATCH] Using the prototypeToken name in the chat message window --- module/data/fields/action/targetField.mjs | 2 +- templates/ui/chat/parts/target-part.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/data/fields/action/targetField.mjs b/module/data/fields/action/targetField.mjs index 41383fea..73766118 100644 --- a/module/data/fields/action/targetField.mjs +++ b/module/data/fields/action/targetField.mjs @@ -79,7 +79,7 @@ export default class TargetField extends fields.SchemaField { return { id: token.id, actorId: token.actor.uuid, - name: token.actor.name, + name: token.name, img: token.actor.img, difficulty: token.actor.system.difficulty, evasion: token.actor.system.evasion, diff --git a/templates/ui/chat/parts/target-part.hbs b/templates/ui/chat/parts/target-part.hbs index 7c777fdb..477445a3 100644 --- a/templates/ui/chat/parts/target-part.hbs +++ b/templates/ui/chat/parts/target-part.hbs @@ -29,7 +29,7 @@
-
{{name}}
+
{{name}}
{{#if (and ../hasRoll (hasProperty this "hit"))}}
{{#if hit}}