mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
[Fix] 1086 - Enrichment Buttons (#1087)
* Fixed so enriched buttons are button type * Fixed DamageEnrihed button
This commit is contained in:
parent
0a5828c8fa
commit
ff65a85458
3 changed files with 8 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ function getDamageMessage(damage, type, inline, defaultElement) {
|
|||
|
||||
const dualityElement = document.createElement('span');
|
||||
dualityElement.innerHTML = `
|
||||
<button class="enriched-damage-button${inline ? ' inline' : ''}"
|
||||
<button type="button" class="enriched-damage-button${inline ? ' inline' : ''}"
|
||||
data-value="${damage}"
|
||||
data-type="${type}"
|
||||
data-tooltip="${game.i18n.localize('DAGGERHEART.GENERAL.damage')}"
|
||||
|
|
@ -71,6 +71,11 @@ export const renderDamageButton = async event => {
|
|||
title: game.i18n.localize('Damage Roll'),
|
||||
data: { bonuses: [] },
|
||||
source: {},
|
||||
hasDamage: true,
|
||||
hasTarget: true,
|
||||
targets: Array.from(game.user.targets).map(t =>
|
||||
game.system.api.fields.ActionFields.TargetField.formatTarget(t)
|
||||
),
|
||||
roll: [
|
||||
{
|
||||
formula: value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue