Ils sont bons mes Maquereaux, elles sont bien mes macros #596

Merged
uberwald merged 6 commits from VincentVk/foundryvtt-reve-de-dragon:v10 into v10 2022-12-17 11:33:44 +01:00
Showing only changes of commit 944120b524 - Show all commits

View File

@ -331,7 +331,7 @@ export class RdDCommands {
diff = 0;
}
const caracName = params[0];
let competence = length > 1 ? actors[0].getCompetence(Misc.join(params.slice(1, length), ' ')) : undefined;
let competence = length > 1 ? actors[0].getCompetence(Misc.join(params.slice(1, length), ' ')) : {name:undefined};
if (competence) {
for (let actor of actors) {
await actor.rollCaracCompetence(caracName, competence.name, diff);