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

@@ -1,6 +1,10 @@
# Changelog
Date format : day/month/year
## 1.7.1 - ??/04/2022 - Spring fixes
- PC/NPC sheet :
- Fixed technique with a skill set, in a title, now open the DicePicker as intended.
## 1.7.0 - 28/03/2022 - Strife, DiceRoller for Techniques & Npc Generator
- NPC Sheet :
- Added a random generator feature (Demeanor, Clan and Families names courteously authorized by Edge).

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;
}

View File

@@ -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",