<div class="chat-message-header">
  {{#if actorImg}}
  <img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
  {{/if}}
  <h4 class=chat-actor-name>{{alias}}</h4>
</div>

  <hr>
  
  {{#if img}}
  <div >
    <img class="chat-icon" src="{{img}}" alt="{{name}}" />
  </div>
  {{/if}}

  <div class="flexcol">
    </div>

    <div>
      <ul>

        {{#if skill}}
        <li>Skill : {{skill.name}} ({{skill.total}}%)</li>
        {{/if}}
        {{#if weapon}}
        <li>Weapon : {{weapon.name}}</li>
        <li>Location hit : {{upperFirst weaponAiming}} ({{locationMalus}})</li>
        {{/if}}
        {{#if isAboveEffectiveRange}}
        <li>Above effective range: yes, -30% applied</li>
        {{/if}}

        <li>Bonus/Malus: {{bonusMalus}}% </li>
        <li>Final score: {{percentValue}}% </li>
        <li>Result: {{diceResult}} </li>
        <li>Degrees: {{degrees}} </li>
        
        {{#if isCriticalSuccess}}
        <li><strong>Critical Success !</strong></li> 
        {{else}}
          {{#if isSuccess}}
            <li><strong>Success !</strong></li> 
          {{else}}
            {{#if isCriticalFailure}}
              <li><strong>Critical Failure !</strong></li> 
              {{else}}
              <li><strong>Failure ...</strong></li> 
            {{/if}}
          {{/if}}
        {{/if}}

      {{#if (and weapon isSuccess)}}
        {{#if weapon.system.hashpdamage}}
          <li>Roll HP Damage: [[/r {{weapon.system.damage}}]]</li>
        {{/if}}
        {{#if weapon.system.hasfatiguedamage}}
          <li>Roll Fatigue Damage: [[/r {{weapon.system.fatiguedamage}}]]</li>
        {{/if}}
      {{/if}}

      {{#if (and (not isSuccess) rerolls)}}
        <button class="chat-card-button chat-reroll">Reroll !</button>      
      {{/if}}

      </ul>  
    </div>

  </div>
