Change how embedded ActiveEffects are created
This commit is contained in:
parent
f8364888f2
commit
cf13b986d4
1 changed files with 2 additions and 3 deletions
|
|
@ -39,9 +39,8 @@ export class PlayerSheetv2 extends GenericActorSheet {
|
|||
|
||||
html.find(`.create-ae`).on(`click`, async ($e) => {
|
||||
console.debug(`Creating an ActiveEffect?`);
|
||||
ActiveEffect.implementation.create({
|
||||
name: "Default AE",
|
||||
}, { parent: this.actor, renderSheet: true });
|
||||
const ae = this.actor.createEmbeddedDocuments(`ActiveEffect`, [{name: "Default AE"}]);
|
||||
ae.sheet.render(true);
|
||||
});
|
||||
html.find(`[data-filter-toggle]`).on(`change`, ($e) => {
|
||||
const target = $e.delegateTarget;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue