Une dague est une arme
Mais on trouvait d'abord la compétence
This commit is contained in:
parent
c040197d97
commit
e4c9e5cfb6
@ -717,7 +717,7 @@ export class RdDActor extends Actor {
|
||||
/* -------------------------------------------- */
|
||||
rollArme( armeName )
|
||||
{
|
||||
let armeItem = RdDUtility.findCompetence( this.data.items, armeName );
|
||||
let armeItem = this.data.items.find(item=>item.type==="arme" && (item.name === armeName));
|
||||
if ( armeItem && armeItem.data.competence )
|
||||
this.rollCompetence( armeItem.data.competence, armeItem );
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user