onDrop depuis compendium async

Permettre de retrouver l'Item du compendium pour tester si un acteur
peut le recevoir
This commit is contained in:
2023-01-01 22:18:18 +01:00
parent d77ecee9bd
commit 2ca601b5f8
3 changed files with 9 additions and 4 deletions

View File

@ -185,7 +185,7 @@ export class RdDBaseActorSheet extends ActorSheet {
/* -------------------------------------------- */
async _onDropItem(event, dragData) {
const destItemId = this.html.find(event.target)?.closest('.item').attr('data-item-id')
const dropParams = RdDSheetUtility.prepareItemDropParameters(destItemId, this.actor, dragData, this.objetVersConteneur)
const dropParams = await RdDSheetUtility.prepareItemDropParameters(destItemId, this.actor, dragData, this.objetVersConteneur)
if (dropParams) {
const callSuper = await this.actor.processDropItem(dropParams)
if (callSuper) {