Corrections diverses autout du combat

This commit is contained in:
2026-04-13 14:19:24 +02:00
parent 44cc07db73
commit d69144f506
46 changed files with 1340 additions and 241 deletions

View File

@@ -183,23 +183,23 @@
{{#if hasVariableDamage}}
<div class="damage-note">{{localize "CELESTOPOL.Combat.damageManual"}}</div>
{{else}}
{{#if targetActorId}}
{{#if targetActorUuid}}
<div class="damage-breakdown">
<div><strong>{{localize "CELESTOPOL.Combat.targetLabel"}} :</strong> {{targetActorName}}</div>
<div><strong>{{localize "CELESTOPOL.Combat.damageArmorReduction"}} :</strong> {{selectedTargetProtection}}</div>
<div><strong>{{localize "CELESTOPOL.Combat.damageApplied"}} :</strong> {{selectedTargetAppliedWounds}}</div>
</div>
<div class="weapon-damage-actions">
<button type="button" class="damage-apply-button" data-action="apply-weapon-damage" data-actor-id="{{targetActorId}}" data-incoming-wounds="{{incomingWounds}}">
<button type="button" class="damage-apply-button" data-action="apply-weapon-damage" data-actor-id="{{targetActorId}}" data-actor-uuid="{{targetActorUuid}}" data-incoming-wounds="{{incomingWounds}}">
{{localize "CELESTOPOL.Combat.applyDamage"}}
</button>
</div>
{{else if availableTargets.length}}
<div class="weapon-damage-actions">
<select name="targetActorId">
<select name="targetActorUuid">
<option value="">{{localize "CELESTOPOL.Combat.targetAuto"}}</option>
{{#each availableTargets as |target|}}
<option value="{{target.id}}" {{#if target.selected}}selected{{/if}}>{{target.name}}</option>
<option value="{{target.uuid}}" data-actor-id="{{target.id}}" {{#if target.selected}}selected{{/if}}>{{target.name}}</option>
{{/each}}
</select>
<button type="button" class="damage-apply-button" data-action="apply-weapon-damage" data-incoming-wounds="{{incomingWounds}}">