mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
14 lines
440 B
JavaScript
14 lines
440 B
JavaScript
export default class DhpChatMesssage extends ChatMessage {
|
|
async renderHTML() {
|
|
if (
|
|
this.type === 'dualityRoll' ||
|
|
this.type === 'adversaryRoll' ||
|
|
this.type === 'damageRoll' ||
|
|
this.type === 'abilityUse'
|
|
) {
|
|
this.content = await foundry.applications.handlebars.renderTemplate(this.content, this.system);
|
|
}
|
|
|
|
return super.renderHTML();
|
|
}
|
|
}
|