Working on 0.8.x

- Advancement bonus management for onDrop and delete
This commit is contained in:
Vlyan
2021-05-22 23:33:24 +02:00
parent f8afea9513
commit 286ee72c9f
2 changed files with 27 additions and 4 deletions

View File

@@ -106,6 +106,9 @@ export class TitleSheetL5r5e extends ItemSheetL5r5e {
async _addSubItem(event) {
// Show Dialog
const selectedType = await game.l5r5e.HelpersL5r5e.showSubItemDialog(["advancement", "technique"]);
if (!selectedType) {
return;
}
// Create the new Item
const itemId = await this.document.addEmbedItem(