diff --git a/system/scripts/helpers.js b/system/scripts/helpers.js
index e88382d..ca7bf36 100644
--- a/system/scripts/helpers.js
+++ b/system/scripts/helpers.js
@@ -490,11 +490,13 @@ export class HelpersL5r5e {
* @return {Promise<*>}
*/
static async sendToChat(object) {
+ // Get the html
const tpl = await object.renderTextTemplate();
if (!tpl) {
return;
}
+ // Create the link
let link = null;
if (object.data.flags.core?.sourceId) {
link = object.data.flags.core?.sourceId.replace(/(\w+)\.(.+)/, "@$1[$2]");
@@ -504,8 +506,9 @@ export class HelpersL5r5e {
link = object.link;
}
+ // Send to Chat
return ChatMessage.create({
- content: (link ? link + `
` : "") + tpl,
+ content: `
{{{data.content}}}
+
+ {{#if data.content}}
+ {{{data.content}}}
+ {{else}}
+ {{#if data.img}}{{/if}}
+ {{/if}}
+