remove warpgate from powers handling
This commit is contained in:
parent
486a7d4167
commit
5151634e8b
@ -1,4 +1,3 @@
|
|||||||
/* globals warpgate */
|
|
||||||
import { templates } from '../preloadTemplates.js';
|
import { templates } from '../preloadTemplates.js';
|
||||||
import { moduleName } from '../globals.js';
|
import { moduleName } from '../globals.js';
|
||||||
|
|
||||||
@ -132,17 +131,18 @@ export class PowerEffect {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async applyActiveEffects(token, effectDocuments) {
|
async applyActiveEffects(token, effectDocuments) {
|
||||||
const mutation = {
|
await token.actor.createEmbeddedDocuments('ActiveEffect', effectDocuments);
|
||||||
embedded: { ActiveEffect: {} },
|
// const mutation = {
|
||||||
};
|
// embedded: { ActiveEffect: {} },
|
||||||
const mutateOptions = {
|
// };
|
||||||
permanent: true,
|
// const mutateOptions = {
|
||||||
description: `${this.source.name} applying ${effectDocuments[effectDocuments.length - 1]?.name} to ${token.name}`,
|
// permanent: true,
|
||||||
};
|
// description: `${this.source.name} applying ${effectDocuments[effectDocuments.length - 1]?.name} to ${token.name}`,
|
||||||
for (const effectDocument of effectDocuments) {
|
// };
|
||||||
mutation.embedded.ActiveEffect[effectDocument.name] = effectDocument;
|
// for (const effectDocument of effectDocuments) {
|
||||||
}
|
// mutation.embedded.ActiveEffect[effectDocument.name] = effectDocument;
|
||||||
await warpgate.mutate(token.document, mutation, {}, mutateOptions);
|
// }
|
||||||
|
// await warpgate.mutate(token.document, mutation, {}, mutateOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
get name() {
|
get name() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user