fix npc dice roll, and with category id instead of skill id

This commit is contained in:
Vlyan
2020-12-18 23:25:00 +01:00
parent b152018607
commit d3bcfba723
8 changed files with 47 additions and 21 deletions

View File

@@ -41,7 +41,11 @@ export class BaseSheetL5r5e extends ActorSheet {
// *** Skills ***
html.find(".skill-name").on("click", (ev) => {
const li = $(ev.currentTarget).parents(".skill");
new game.l5r5e.DicePickerDialog({ skillId: li.data("skill"), actor: this.actor }).render(true);
new game.l5r5e.DicePickerDialog({
skillId: li.data("skill"),
skillCatId: li.data("skillcat"),
actor: this.actor,
}).render(true);
});
// *** Everything below here is only needed if the sheet is editable ***