<div class="dice-roll m5-roll">
	<div class="flexcol">
		<h3 class="roll-title">{{res.label}}</h3>

		<table>
			<tbody>
				{{#if (eq iType "spell")}}
					<tr>
						<td>{{localize "midgard5.actor-ap"}}</td>
						<td class="roll-spell-details">{{i.ap}}</td>
					</tr>
					<tr>
						<td>{{localize "midgard5.spell-castDuration"}}</td>
						<td class="roll-spell-details">{{i.castDuration}}</td>
					</tr>
					<tr>
						<td>{{localize "midgard5.spell-range"}}</td>
						<td class="roll-spell-details">{{i.range}}</td>
					</tr>
					<tr>
						<td>{{localize "midgard5.spell-effectTarget"}}</td>
						<td class="roll-spell-details">{{localize (m5concat "midgard5.spell-target-" i.effectTarget)}}</td>
					</tr>
					<tr>
						<td>{{localize "midgard5.spell-effectArea"}}</td>
						<td class="roll-spell-details">{{i.effectArea}}</td>
					</tr>
					<tr>
						<td>{{localize "midgard5.spell-effectDuration"}}</td>
						<td class="roll-spell-details">{{i.effectDuration}}</td>
					</tr>
					<tr>
						<td>{{localize "midgard5.spell-origin"}}</td>
						<td class="roll-spell-details">{{i.origin}}</td>
					</tr>
					<tr>
						<td>{{localize "midgard5.spell-type"}}</td>
						<td class="roll-spell-details">{{localize (m5concat "midgard5.spell-type-" i.type)}}</td>
					</tr>
					<tr>
						<td>{{localize "midgard5.spell-process"}}</td>
						<td class="roll-spell-details">{{localize (m5concat "midgard5.spell-process-" i.process)}}</td>
					</tr>
				{{/if}}

				{{#if (eq iType "kampfkunst")}}
					{{#unless i.isKido}}
						<tr>
							<td>{{localize "midgard5.actor-ap"}}</td>
							<td class="roll-spell-details">{{i.ap}}</td>
						</tr>
						<tr>
							<td>{{localize "midgard5.kampfkunst-type"}}</td>
							<td class="roll-spell-details">{{localize (m5concat "midgard5.kampfkunst-type-" i.type)}}</td>
						</tr>
						{{#if (eq i.type "angriff")}}
							<tr>
								<td>{{localize "midgard5.kampfkunst-variante"}}</td>
								<td class="roll-spell-details">{{localize (m5concat "midgard5.kampfkunst-variante-" i.variante)}}</td>
							</tr>
						{{/if}}
					{{else}}
						<tr>
							<td>{{localize "midgard5.actor-ap"}}</td>
							<td class="roll-spell-details">{{i.ap}}</td>
						</tr>
						<tr>
							<td>{{localize "midgard5.kido-type"}}</td>
							<td class="roll-spell-details">{{localize (m5concat "midgard5.kido-type-" i.type)}}</td>
						</tr>
						{{#if (eq i.type "angriff")}}
							<tr>
								<td>{{localize "midgard5.kido-variante"}}</td>
								<td class="roll-spell-details">{{localize (m5concat "midgard5.kido-variante-" i.variante)}}</td>
							</tr>
						{{/if}}
					{{/unless}}
				{{/if}}

				{{#each rolls as |roll index|}}
					{{#if roll.enabled}}
						<tr class="roll-row {{roll.css}}">
							<td>{{roll.label}}</td>
							<td class="roll-result">
								<span class="roll-total {{#if (contains roll.label "Schaden")}} apply-damage{{/if}}">{{roll.totalStr}}</span>
								<span class="roll-detail">{{roll.result}}</span>
							</td>
						</tr>
					{{/if}}
				{{/each}}
			</tbody>
		</table>
		{{#if i.description}}
			<tr>
				<h2 class="roll-description-header">Beschreibung:</h2>
				<span>{{stripHtml i.description}}</span>
			</tr>
		{{/if}}
	</div>
</div>