{{!-- SPDX-FileCopyrightText: 2022 Foundry Gaming LLC. SPDX-FileCopyrightText: 2022 Johannes Loher SPDX-License-Identifier: MIT --}}
{{#if user.isGM}} {{/if}}
{{#if user.isGM}} {{/if}} {{#if combatCount}} {{#if combat.started}}

{{localize 'TICKWERK.Tick'}} {{combat.tickValue}}

{{else}}

{{localize 'COMBAT.NotStarted'}}

{{/if}} {{else}}

{{localize "COMBAT.None"}}

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

    {{this.name}}

    {{#if (or ../user.isGM (and ../control this.owner))}} {{/if}} {{#if ../user.isGM}} {{/if}} {{#if this.canPing}} {{/if}}
    {{#each this.effects}} {{/each}}
    {{#if this.hasResource}}
    {{this.resource}}
    {{/if}}
    {{#if this.hasRolled}} {{#if this.waiting}}{{localize "TICKWERK.Waiting"}}{{else}}{{this.initiative}}{{/if}} {{else if this.owner}} {{/if}}
  2. {{/each}}