Appliquer encTotal à l'acrobatie #75
This commit is contained in:
@ -5,7 +5,10 @@ export class RdDItemCompetence extends Item {
|
||||
return name.toLowerCase().match(/(epée|épée|hache|fleau|fléau|masse|lance|hast|dague|bouclier)/);
|
||||
}
|
||||
static isArmeUneMain(competence) {
|
||||
return competence.name.toLowerCase().includes("1 main");
|
||||
return competence && competence.name.toLowerCase().includes("1 main");
|
||||
}
|
||||
|
||||
static isMalusEncombrementTotal(competence) {
|
||||
return competence && competence.name.toLowerCase().match(/(natation|acrobatie)/);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user