{{!log 'chat-message' this}}
<div class="{{cssClass}}">
    <div class="intro-chat">
        {{#if (ne actingCharImg "icons/svg/mystery-man.svg")}}
            <div class="intro-img">
                <img src="{{actingCharImg}}" data-tooltip="{{actingCharName}}" />
            </div>
        {{else}}
            <div></div>
        {{/if}}
        <div class="intro-right">                
            <p class="introText" {{#if isSave}}data-tooltip="{{introTextTooltip}}"{{/if}}>{{{introText}}}
            {{#if isSave}}
                    <br>
                    {{#if (eq avantages "avantage")}} {{localize "TENEBRIS.Roll.avantage"}}{{/if}}
                    {{#if (eq avantages "desavantage")}} {{localize "TENEBRIS.Roll.desavantage"}}{{/if}}
                    {{#if (eq avantages "doubleAvantage")}} {{localize "TENEBRIS.Roll.doubleAvantage"}}{{/if}}
                    {{#if (eq avantages "doubleDesavantage")}} {{localize "TENEBRIS.Roll.doubleDesavantage"}}{{/if}}
            {{/if}}        
            </p>                 
        </div>
    </div>
     {{#if isSave}}
        <div class="result">
            {{#if (eq resultType "success")}}
                {{#if isPrivate}}?{{else}}{{localize "TENEBRIS.Roll.success"}}{{/if}}
            {{else}}
                {{#if isPrivate}}?{{else}}{{localize "TENEBRIS.Roll.failure"}}{{/if}}
            {{/if}}
        </div>
     {{/if}}
     {{#if isResource}}
        <div class="result">
            {{#if (eq resultType "success")}}
                {{#if isPrivate}}?{{else}}{{localize "TENEBRIS.Roll.success"}}{{/if}}
            {{else}}
                {{#if isPrivate}}?{{else}}{{localize "TENEBRIS.Roll.failure"}}{{#if isFailure}} ({{localize "TENEBRIS.Roll.resourceLost"}}){{/if}}{{/if}}
            {{/if}}
        </div>
     {{/if}}
     {{#if isDamage}}
        <div>
            {{#if (and isGM hasTarget)}}
                    {{{localize "TENEBRIS.Roll.displayArmor" targetName=targetName targetArmor=targetArmor realDamage=realDamage}}}
            {{/if}}
        </div>
     {{/if}}
    {{#unless isPrivate}}
        <div class="dice-result">
            <h4 class="dice-total">{{total}}</h4>
            <div class="dice-formula">{{formula}}</div>
            {{{tooltip}}}        
        </div>
    {{/unless}}
</div>
