{{#if user.isGM}}
{{#if combatCount}}

{{localize "COMBAT.Encounter"}} {{currentIndex}} / {{combatCount}}

{{/if}}
{{/if}}
{{#if user.isGM}} {{/if}} {{#if combatCount}} {{#if combat.round}}

{{localize 'COMBAT.Round'}} {{combat.round}}

{{else}}

{{localize 'COMBAT.NotStarted'}}

{{/if}} {{else}}

{{localize "COMBAT.None"}}

{{/if}} {{#if user.isGM}} {{/if}}
    {{#each turns}}
  1. {{this.name}}

    {{#if ../user.isGM}} {{/if}}
    {{#each this.effects}} {{/each}}

     

    {{#if this.hasResource}}
    {{this.resource}}
    {{/if}}
    {{#if this.hasRolled}} {{this.initiative}} {{else if this.owner}} {{/if}}
  2. {{/each}}
{{#if hasCombat}} {{log "#### combat-tracker-v9 template" this}} {{#if user.isGM}} {{#if round}} {{localize 'COMBAT.End'}} {{else}} {{localize 'COMBAT.Begin'}} {{/if}} {{else if control}} {{localize 'COMBAT.TurnEnd'}} {{/if}} {{/if}}