{{ battle?.name || 'Battle' }}
Round {{ battle?.round || 1 }} Turn {{ battle?.currentTurn !== undefined ? battle!.currentTurn + 1 : 0 }}/{{ battle?.combatants?.length || 0 }}
@if (!battle) {

Loading battle...

} @else { @if (currentCombatant) { Current Turn {{ currentCombatant.name }}
HP: {{ currentCombatant.health }}/{{ currentCombatant.maxHealth }}
AC {{ currentCombatant.armorClass }}
Initiative {{ currentCombatant.initiative }}
Type {{ currentCombatant.type === 'character' ? 'PC' : 'Monster' }}
@if (currentCombatant.conditions && currentCombatant.conditions.length > 0) {
Conditions:
@for (condition of currentCombatant.conditions; track condition) { {{ condition }} }
}
Conditions Notes
@if (currentCombatant.notes) {

{{ currentCombatant.notes }}

}
} Initiative Order @for (combatant of battle.combatants; track combatant.id; let i = $index) {

{{ combatant.name }}

Initiative: {{ combatant.initiative }} @if (combatant.conditions && combatant.conditions.length > 0) { | {{ combatant.conditions.join(', ') }} }

{{ combatant.health }}/{{ combatant.maxHealth }}
}
}
@if (battle) { {{ battle.combatants[battle.currentTurn].name || 'No active combatant' }} } @else { Loading... }