{{#if (equals type "weapon")}}
<div class="attack-result-damage single-btn">
  <button class="roll-damage-btn"
    data-attacker-id="{{attackerId}}"
    data-defender-id="{{defenderId}}"
    data-defender-token-id="{{defenderTokenId}}"
    data-extra-shield-dr="{{shieldDamageReduction}}"
    data-weapon-id="{{attackWeaponId}}"
    data-damage-type="medium"
    data-d30-bleed="{{d30Bleed}}"
    data-d30-damage-mult="{{d30DamageMultiplier}}"
    data-d30-dr-mult="{{d30DrMultiplier}}">
    <i class="fa-solid fa-dice-d20"></i> Damage
  </button>
</div>
{{else if (equals type "monster")}}
<div class="attack-result-damage single-btn">
  <button class="roll-damage-btn"
    data-attacker-id="{{attackerId}}"
    data-defender-id="{{defenderId}}"
    data-defender-token-id="{{defenderTokenId}}"
    data-extra-shield-dr="{{shieldDamageReduction}}"
    data-attack-key="{{attackRollKey}}"
    data-damage-type="monster"
    data-d30-bleed="{{d30Bleed}}"
    data-d30-damage-mult="{{d30DamageMultiplier}}"
    data-d30-dr-mult="{{d30DrMultiplier}}">
    <i class="fa-solid fa-burst"></i> Damage
  </button>
</div>
{{else if (equals type "spell")}}
<div class="attack-result-damage spell-damage">
  {{#each tiers}}
  <button class="roll-damage-btn"
    data-attacker-id="{{../attackerId}}"
    data-defender-id="{{../defenderId}}"
    data-defender-token-id="{{../defenderTokenId}}"
    data-damage-type="spell"
    data-damage-formula="{{this.formula}}"
    data-d30-bleed="{{../d30Bleed}}"
    data-d30-damage-mult="{{../d30DamageMultiplier}}"
    data-d30-dr-mult="{{../d30DrMultiplier}}">
    <i class="fa-solid fa-wand-magic-sparkles"></i> {{this.label}} ({{this.formula}})
  </button>
  {{/each}}
</div>
{{/if}}
