Fix parades avec arme
This commit is contained in:
parent
996d9bc826
commit
18907f7be1
@ -954,9 +954,10 @@ export class RdDCombat {
|
||||
/* -------------------------------------------- */
|
||||
_filterArmesParade(defender, competence) {
|
||||
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) {
|
||||
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) {
|
||||
case 'tir':
|
||||
|
Loading…
Reference in New Issue
Block a user