<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 carac}}
          <li>{{carac.name}}: {{carac.qualite}} ({{carac.dice}}) </li>
        {{/if}}
        {{#if competence}}
          <li>{{competence.name}}: {{competence.system.score}} </li>
        {{/if}}
        {{#if bonusMalus}}
          <li>Bonus/Malus: {{bonusMalus}} </li>
        {{/if}}
        {{#if santeModifier}}
          <li>Santé: {{santeModifier}} niveaux</li>
        {{/if}}
        {{#if enableProvidence}}
          <li>Un niveau de Providence a été utilisé !</li>
        {{/if}}

        <li>Dés: {{diceFormula}} </li>
        <li>Difficulté: {{difficulty}} </li>
      </ul>
    </div>

    <div class="flexrow">
      <ul class="chat-result-column">
        <li><strong>Résultat: {{total}}</strong> </li>
        {{#if isSuccess}}
        <li><strong class="chat-result-success">Succès !</strong> </li>
          {{#if isReussiteCritique}}
          <li><strong class="chat-result-success">Réussite critique ! 1 XP gagné en {{carac.name}}.</strong> </li>
          {{/if}} 
        {{else}}        
          <li><strong class="chat-result-failure">Echec !</strong> </li>
          {{#if isEchecCritique}}
          <li><strong class="chat-result-failure">Echec critique ! 1 XP gagné en {{carac.name}}.</strong> </li>
          {{/if}} 
        {{/if}} 
      </ul>  
      <div>
        <a class="chat-command-button" data-chat-command="opposition">
          <img class="chat-command-img" data-tooltip="Test en opposition" src="systems/fvtt-te-deum/images/icons/opposition.webp">
        </a>
      </div>
    </div>

  </div>
