Fixed technique with a skill set, in a title, now open the DicePicker as intended.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
"description": "This is an authorised multilingual game system En|Fr|Es, for Legend of the Five Rings (5th Edition) by <a href='https://edge-studio.net/'>Edge Studio</a> <p> - Join the official Discord server: <a href='https://discord.gg/foundryvtt'> Official Discord</a></p><p> - Rejoignez la communauté Francophone: <a href='https://discord.gg/pPSDNJk'>Francophone Discord</a></p>",
|
||||
"url": "https://gitlab.com/teaml5r/l5r5e",
|
||||
"manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json",
|
||||
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.7.0/raw/l5r5e.zip?job=build",
|
||||
"version": "1.7.0",
|
||||
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.7.1/raw/l5r5e.zip?job=build",
|
||||
"version": "1.7.1",
|
||||
"minimumCoreVersion": "9",
|
||||
"compatibleCoreVersion": "9",
|
||||
"manifestPlusVersion": "1.0.0",
|
||||
|
||||
Reference in New Issue
Block a user