Correction sur les liens de jets de dés

- correction jet de rêve actuel
- utilisation du personnage du joueur
This commit is contained in:
2025-01-11 18:59:22 +01:00
parent 792558ac84
commit 551438f514
3 changed files with 21 additions and 4 deletions

View File

@ -77,7 +77,7 @@ export class RdDCarac {
static caracDetails(name) {
let entry = Misc.findFirstLike(name, LIST_CARAC_ROLL, { mapper: it => it.code, description: 'caractéristique', onMessage: m => { } })
if (entry && entry.length > 0) {
if (entry) {
return entry
}
return Misc.findFirstLike(name, LIST_CARAC_ROLL, { mapper: it => it.label, description: 'caractéristique' })