Fixed technique with a skill set, in a title, now open the DicePicker as intended.

This commit is contained in:
Vlyan
2022-03-29 11:33:05 +02:00
parent daf402fd1a
commit 5aed5629bf
3 changed files with 9 additions and 5 deletions

View File

@@ -613,12 +613,12 @@ export class BaseCharacterSheetL5r5e extends BaseSheetL5r5e {
* @param {Event} event
* @private
*/
_openDicePickerForTechnique(event) {
async _openDicePickerForTechnique(event) {
event.preventDefault();
event.stopPropagation();
const itemId = $(event.currentTarget).data("item-id") || null;
const item = this.actor.items.get(itemId);
// Required for tech in titles, search in sub items
const item = await game.l5r5e.HelpersL5r5e.getEmbedItemByEvent(event, this.actor);
if (!item || item.type !== "technique" || !item.data.data.skill) {
return;
}