<div class="bol-defense-card">
  <div class="defense-card-header">
    <img class="damage-weapon-img" src="{{defender.img}}" alt="{{defender.name}}"/>
    <div class="damage-card-title">
      <div class="damage-weapon-name">{{defender.name}}</div>
      <div class="damage-total-badge damage-total-badge--hit">{{damageTotal}}</div>
    </div>
  </div>

  {{#if damagesIgnoresArmor}}
    <div class="damage-note damage-note--warn">⚠ {{localize "BOL.chat.armordefault"}}</div>
  {{/if}}

  <div class="actions-section defense-actions">
    <button class="damage-handling" data-defense-mode="damage-with-armor" data-attack-id="{{attackId}}">{{localize "BOL.chat.witharmor"}}</button>
    <button class="damage-handling" data-defense-mode="damage-without-armor" data-attack-id="{{attackId}}">{{localize "BOL.chat.withoutarmor"}}</button>

    {{#if (gt defenderHeroPoints 0)}}
      <div class="defense-hero-separator">— {{localize "BOL.ui.heropoints"}} —</div>
      <button class="damage-handling" data-defense-mode="hero-reduce-damage" data-attack-id="{{attackId}}">{{localize "BOL.chat.shakeoff"}}</button>
      {{#each defenderWeapons as |weapon idx|}}
        <button class="damage-handling" data-defense-mode="hero-in-extremis" data-attack-id="{{@root.attackId}}" data-weapon-id="{{weapon._id}}">{{localize "BOL.chat.splinteredshield" name=weapon.name}}</button>
      {{/each}}
    {{/if}}

    <button class="damage-handling" data-defense-mode="damage-not-applied" data-attack-id="{{attackId}}">{{localize "BOL.chat.nodamage"}}</button>
  </div>

  <div class="defense-footer-note">{{localize "BOL.chat.defenseReduceDamage2"}}</div>
</div>
