Fix parades avec arme

This commit is contained in:
Vincent Vandemeulebrouck 2022-01-02 22:27:15 +01:00
parent 996d9bc826
commit 18907f7be1

View File

@ -954,9 +954,10 @@ export class RdDCombat {
/* -------------------------------------------- */ /* -------------------------------------------- */
_filterArmesParade(defender, competence) { _filterArmesParade(defender, competence) {
let items = defender.data.items; let items = defender.data.items;
items = items.filter(it => RdDItemArme.isArmeUtilisable(it) || RdDItemCompetenceCreature.isCompetenceParade(it)); items = items.filter(it => RdDItemArme.isArmeUtilisable(it) || RdDItemCompetenceCreature.isCompetenceParade(it))
.map(Misc.data);
for (let item of items) { for (let item of items) {
item.data.nbUsage = defender.getItemUse(item.id); // Ajout du # d'utilisation ce round item.data.nbUsage = defender.getItemUse(item._id); // Ajout du # d'utilisation ce round
} }
switch (competence.data.categorie) { switch (competence.data.categorie) {
case 'tir': case 'tir':