2021-01-07 00:32:22 +01:00
|
|
|
<div data-passearme="{{passeArme}}">
|
|
|
|
{{#if (eq surprise 'totale')}}
|
|
|
|
<span><strong>{{defender.name}}</strong> est totalement surpris</span>
|
2021-01-07 01:54:38 +01:00
|
|
|
{{else if essais.defense}}
|
2021-01-08 22:55:00 +01:00
|
|
|
<span><strong>{{defender.name}}</strong> doit :</span>
|
2021-01-07 00:32:22 +01:00
|
|
|
{{else}}
|
|
|
|
<span><strong>{{defender.name}}</strong> doit se défendre
|
2021-01-19 22:31:32 +01:00
|
|
|
{{~#if (eq surprise 'demi')}} avec une significative {{/if}} d'une attaque
|
|
|
|
{{~#if attaqueParticuliere}} <strong>particulière en
|
2021-01-15 19:09:44 +01:00
|
|
|
{{~#if (eq attaqueParticuliere 'finesse')}} finesse
|
|
|
|
{{else if (eq attaqueParticuliere 'force')}} force
|
2021-01-19 22:31:32 +01:00
|
|
|
{{else if (eq attaqueParticuliere 'rapidite')}} rapidité
|
2021-01-15 19:09:44 +01:00
|
|
|
{{/if~}}</strong>
|
2021-01-19 22:31:32 +01:00
|
|
|
{{/if}} de {{attacker.name}} ({{attaqueArme.name}}):
|
2021-01-07 00:32:22 +01:00
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
<span class='chat-card-button-area'>
|
|
|
|
<br>
|
|
|
|
{{#unless (eq surprise 'totale')}}
|
2021-01-07 01:54:38 +01:00
|
|
|
{{#if essais.defense}}
|
|
|
|
{{#unless essais.defenseChance}}
|
2021-03-29 18:08:18 +02:00
|
|
|
{{#if (eq defender.type 'personnage')}}
|
2021-01-07 00:32:22 +01:00
|
|
|
<a class='chat-card-button' id='appel-chance-defense' data-attackerId='{{attackerId}}'
|
|
|
|
data-defenderTokenId='{{defenderTokenId}}'>Faire appel à la chance</a>
|
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
{{/if}}
|
2021-03-29 18:08:18 +02:00
|
|
|
{{#if (eq defender.type 'personnage')}}
|
2022-09-06 23:52:21 +02:00
|
|
|
{{#if (gt defender.system.compteurs.destinee.value 0)}}
|
2021-01-07 00:32:22 +01:00
|
|
|
<a class='chat-card-button' id='appel-destinee-defense' data-attackerId='{{attackerId}}'
|
|
|
|
data-defenderTokenId='{{defenderTokenId}}'>Utiliser la destinée</a>
|
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
{{/if}}
|
2021-01-08 22:55:00 +01:00
|
|
|
{{/if}}
|
|
|
|
{{/unless}}
|
2021-01-07 00:32:22 +01:00
|
|
|
{{else}}
|
|
|
|
{{#each armes as |arme key|}}
|
2021-11-20 02:53:28 +01:00
|
|
|
<a class='chat-card-button' id='parer-button' data-attackerId='{{../attackerId}}' data-defenderTokenId='{{../defenderTokenId}}'
|
|
|
|
data-armeid='{{arme._id}}'>
|
2022-09-06 23:52:21 +02:00
|
|
|
Parer avec {{arme.name}} à {{../diffLibre }}{{#if arme.system.nbUsage}} (Utilisations : {{arme.system.nbUsage}}){{/if}}
|
2021-01-07 00:32:22 +01:00
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
{{/each}}
|
|
|
|
{{#if mainsNues}}
|
2021-11-20 02:53:28 +01:00
|
|
|
<a class='chat-card-button' id='parer-button' data-attackerId='{{attackerId}}' data-defenderTokenId='{{defenderTokenId}}'
|
2022-09-06 23:52:21 +02:00
|
|
|
data-armeid='{{arme._id}}' data-competence='{{arme.system.competence}}'>
|
|
|
|
Parer à mains nues à {{diffLibre}}{{#if arme.system.nbUsage}} (Utilisations : {{arme.system.nbUsage}}){{/if}}
|
2021-01-07 00:32:22 +01:00
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (ne attaqueCategorie 'tir')}}
|
2022-09-21 14:13:43 +02:00
|
|
|
{{#each esquives as |esquive key|}}
|
2021-11-20 02:53:28 +01:00
|
|
|
<a class='chat-card-button' id='esquiver-button' data-attackerId='{{../attackerId}}' data-defenderTokenId='{{../defenderTokenId}}'
|
2022-09-21 14:13:43 +02:00
|
|
|
data-compid='{{esquive._id}}' data-competence='{{esquive.name}}'>
|
|
|
|
{{log 'esquive' esquive}}
|
|
|
|
{{esquive.name}} à {{../diffLibre}} {{#if esquive.system.nbUsage}} (Utilisations : {{esquive.system.nbUsage}}){{/if}}
|
2021-01-07 00:32:22 +01:00
|
|
|
</a>
|
|
|
|
<br>
|
2021-11-20 02:53:28 +01:00
|
|
|
{{/each}}
|
2021-01-07 00:32:22 +01:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{/unless}}
|
|
|
|
<a class='chat-card-button' id='encaisser-button' data-attackerId='{{attackerId}}'
|
|
|
|
data-defenderTokenId='{{defenderTokenId}}'>
|
|
|
|
Encaisser à {{#if (eq dmg.mortalite 'non-mortel')~}}
|
|
|
|
({{numberFormat dmg.total decimals=0 sign=true}})
|
|
|
|
{{~else~}}
|
|
|
|
{{numberFormat dmg.total decimals=0 sign=true}}
|
|
|
|
{{~/if}} !
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</div>
|