Ajout des entites de Cauchemar

This commit is contained in:
2020-11-18 16:33:12 +01:00
parent 5953a1c409
commit 5068964e05
35 changed files with 68 additions and 60 deletions

View File

@ -28,6 +28,10 @@ export class RdDActor extends Actor {
*/
static async create(data, options) {
// Case of compendium global import
if (data instanceof Array)
return super.create(data, options);
// If the created actor has items (only applicable to duplicated actors) bypass the new actor creation logic
if (data.items) {
return super.create(data, options);