Fix: await manquant

This commit is contained in:
Vincent Vandemeulebrouck 2021-06-02 18:19:47 +02:00
parent 2cf9d0f37c
commit a5581e7443

View File

@ -109,7 +109,7 @@ export class RdDActor extends Actor {
const isPersonnage = actorData.type == "personnage";
// If the created actor has items (only applicable to duplicated actors) bypass the new actor creation logic
if (actorData.items) {
let actor = super.create(actorData, options);
let actor = await super.create(actorData, options);
if (isPersonnage) {
await actor.checkMonnaiePresence(actorData.items);
}