Fixed Title's embed items tooltips.
This commit is contained in:
@@ -175,7 +175,7 @@ export class TwentyQuestionsDialog extends FormApplication {
|
||||
super.activateListeners(html);
|
||||
|
||||
// Commons
|
||||
game.l5r5e.HelpersL5r5e.commonListeners(html);
|
||||
game.l5r5e.HelpersL5r5e.commonListeners(html, this.actor);
|
||||
|
||||
// BT Next
|
||||
html.find(".next").on("click", (event) => {
|
||||
|
||||
@@ -469,7 +469,12 @@ export class HelpersL5r5e {
|
||||
item = await HelpersL5r5e.getObjectGameOrPack({ id: propertyId, type: "Item" });
|
||||
} else if (itemParentId) {
|
||||
// Embed Item
|
||||
const parentItem = actor.items.get(itemParentId);
|
||||
let parentItem;
|
||||
if (actor) {
|
||||
parentItem = actor.items?.get(itemParentId);
|
||||
} else {
|
||||
parentItem = game.items.get(itemParentId);
|
||||
}
|
||||
if (!parentItem) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ export class ItemSheetL5r5e extends ItemSheet {
|
||||
super.activateListeners(html);
|
||||
|
||||
// Commons
|
||||
game.l5r5e.HelpersL5r5e.commonListeners(html);
|
||||
game.l5r5e.HelpersL5r5e.commonListeners(html, this.actor);
|
||||
|
||||
// Everything below here is only needed if the sheet is editable
|
||||
if (!this.isEditable) {
|
||||
|
||||
Reference in New Issue
Block a user